Add protobuf/jsonpb marshalers to your proto messages
To use:
- Install the plugin:
go install github.com/ajm188/go-jsonpb/cmd/protoc-gen-go-json
.- Ensure that
protoc-gen-go-json
is in your$PATH
. This should be the case as long as$GOPATH/bin
is in your$PATH
.
- Ensure that
- Run protoc with the plugin:
protoc --go_out=. --go_json_out=. /path/to/my.proto
.