Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajm188/go-jsonpb
Add protobuf/jsonpb marshalers to your proto messages
https://github.com/ajm188/go-jsonpb
Last synced: 4 days 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 (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-03T12:08:59.000Z (over 3 years ago)
- Last Synced: 2024-06-20T07:57:34.298Z (8 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
[![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
[![GoDoc](https://godoc.org/github.com/ajm188/go-jsonpb?status.svg)](http://godoc.org/github.com/ajm188/go-jsonpb)
[![Go Report Card](https://goreportcard.com/badge/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`.