@brody, from my understanding, generating Go code from Protobuf with gRPC support requires generating the base Go code using protoc-gen-go
. In practice, this looks something like:
protoc \ # <-- requires protobuf
--go_out=. \ # <-- requires protoc-gen-go
--go-grpc_out=. \ # <-- requires protoc-gen-go-grpc
your_service.proto
I might be mistaken, though. I honestly adopted this package just to build cunicu
, and I'm not very knowledgeable about the topic. Please let me know if I'm wrong.
Pinned Comments
amenzhinsky commented on 2021-07-19 08:52 (UTC)
Just a reminder for flagging the package: protoc-gen-go-grpc has its own versioning that differs from grpc-go library.