- Download the latest release of the Protobuf compiler here
- Uncompress it and add its
bin
directory to yourPATH
- Run
go install google.golang.org/protobuf/cmd/protoc-gen-go
- Add
$(go env GOPATH)/bin
to yourPATH
$ make gen-proto build
$ ./example
bin
directory to your PATH
go install google.golang.org/protobuf/cmd/protoc-gen-go
$(go env GOPATH)/bin
to your PATH
$ make gen-proto build
$ ./example