Additional Information

Generate Server and Client side code

Pre-generated stub file is included in the go project. If you need to generate the stub files please use the below
command from the root directory(inside productinfo directory)

$ go install google.golang.org/protobuf/cmd/[email protected]
$ go install google.golang.org/grpc/cmd/[email protected]
Update your PATH so that the protoc compiler can find the plugins:

$ export PATH="$PATH:$(go env GOPATH)/bin"

go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
go get -u google.golang.org/grpc
protoc --go_out=plugins=grpc:. *.proto


protoc factorial.proto --go_out=plugins=grpc:proto

GitHub

View Github