I'm trying to make golang+grpc server on mac. I installed golang, grpc, protocol buffer and checked that grpc server following this example https://grpc.io/docs/quickstart/go/ The problem is when I try to compile .proto file using protocol buffer it said 'missing input' or 'program is not executable'.
install protocol buffer and grpc
brew install grpc protobuf
install golang based protoc plugin
go get github.com/golang/protobuf/protoc-gen-go
protoc path
which protoc
/usr/local/bin/protoc
example location
/Users/usrname/go/src/google.golang.org/grpc/examples/helloworld
run proto compiler
protoc -I=/Users/username/go/src/google.golang.org/grpc/examples/helloworld/helloworld/ --go_out=/Users/username/go/src/google.golang.org/grpc/examples/helloworld/helloworld/ /Users/username/go/src/google.golang.org/grpc/examples/helloworld/helloworld/helloworld.proto
error message
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.