Created
February 1, 2019 01:12
-
-
Save f3nry/eb9124812ecb5bfd307fb136552d086a to your computer and use it in GitHub Desktop.
Generating proto Go code from a definition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install protobuf | |
go get -u google.golang.org/grpc | |
go get -u github.com/golang/protobuf/protoc-gen-go | |
protoc -I=./api --go_out=plugins=grpc:./api ./api/hello.proto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment