Compiling Protobuf To Golang:
PATH="${PATH}:${GOPATH}" protoc -I proto/ proto/falcon.proto --go_out=plugins=grpc:./proto
In order to compile the proto file make sure you have grpc-tools
, protoc
and protoc-gen-go
installed globaly:
./install_protoc.sh
https://grpc.io/docs/protoc-installation/
go install github.com/golang/protobuf/protoc-gen-go@latest