https://github.com/ajm188/go-jsonpb
Add protobuf/jsonpb marshalers to your proto messages
https://github.com/ajm188/go-jsonpb
Last synced: 4 months ago
JSON representation
Add protobuf/jsonpb marshalers to your proto messages
- Host: GitHub
- URL: https://github.com/ajm188/go-jsonpb
- Owner: ajm188
- License: mit
- Created: 2020-09-15T16:58:13.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-03T12:08:59.000Z (almost 4 years ago)
- Last Synced: 2025-02-01T13:48:35.920Z (5 months ago)
- Language: Go
- Size: 58.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-jsonpb
[](LICENSE)
[](http://godoc.org/github.com/ajm188/go-jsonpb)
[](https://goreportcard.com/report/github.com/ajm188/go-jsonpb)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`.