Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 711 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 711 Bytes

go-jsonpb

MIT GoDoc Go Report Card

Add protobuf/jsonpb marshalers to your proto messages

Usage

To use:

  1. 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.
  2. Run protoc with the plugin: protoc --go_out=. --go_json_out=. /path/to/my.proto.