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?
protoc -I helloworld/ helloworld/helloworld.proto --go_out=plugins=grpc:helloworld
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