go install google.golang.org/protobuf/cmd/[email protected]
go install google.golang.org/grpc/cmd/[email protected]
This will read hello.proto and put both proto and grpc file inside folder "pb".
protoc --go_out=pb --go_opt=paths=source_relative --go-grpc_out=pb --go-grpc_opt=paths=source_relative hello.proto
Note - both "go_out" and "go-grpc_out" are set as folder "pb"
https://github.com/harishb2k/golang_grpc_with_opentracing