Hello, I came across two versions of the command to produce the compiler generated code for the .proto files I wrote and I am seeking clarification on which one should I use for my purpose. I am using Golang for my application development so after installing the protoc comiler I already installed the protoc plugin for Golang. I presume a flag or a plugin should be passed to the command to let the compiler generate code for that particular language?
The first command I came across s mentioned on the GRPC Golang tutotials ( https://grpc.io/docs/quickstart/go/) *protoc -I helloworld/ helloworld/helloworld.proto --go_out=plugins=grpc:helloworld* The second command that I came across is on the protocol buffers Golang tutorial page ( https://developers.google.com/protocol-buffers/docs/gotutorial) *protoc -I=$SRC_DIR --go_out=$DST_DIR $SRC_DIR/addressbook.proto* The main difference I see on comparing the two commands is that the first one specifies a plugin while the second one doesn't. Could anyone explain this difference and which one should work for my case? Regards, Niket -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/4493aa66-f86e-4fba-9cc0-50bf3fe98ef0%40googlegroups.com.
