2017-12-16 20:27:24 +00:00
|
|
|
Download the protobuf binary by either:
|
|
|
|
- `brew install protobuf`
|
|
|
|
- Download from protobuf [github release](https://github.com/google/protobuf/releases/tag/v3.1.0) and place in your $PATH
|
|
|
|
|
2016-11-17 23:57:46 +00:00
|
|
|
|
|
|
|
run the following 4 commands listed here https://github.com/gogo/protobuf
|
|
|
|
```sh
|
|
|
|
go get github.com/gogo/protobuf/proto
|
|
|
|
go get github.com/gogo/protobuf/jsonpb
|
|
|
|
go get github.com/gogo/protobuf/protoc-gen-gogo
|
|
|
|
go get github.com/gogo/protobuf/gogoproto
|
|
|
|
```
|
2016-12-06 05:28:12 +00:00
|
|
|
|
|
|
|
now, you can regenerate the `.proto` file: `protoc --gogo_out=. internal.proto`
|