An error occurred when creating a proto file and trying to automatically generate code.
protoc -I helloworld/ helloworld/helloworld.proto --go_out=plugins=grpc:helloworld
protoc-gen-go: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--go_out: protoc-gen-go: Plugin failed with status code 1.
As you are told to set your PATH ...
The solution is to add the following to bash_profile
!
export GOPATH=$HOME/go
PATH=$PATH:$GOPATH/bin
Recommended Posts