Skip to content

hr3lxphr6j/protoc-gen-jsonify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

protoc-gen-jsonify

Adds encoding/json Marshaler and Unmarshaler methods on PB messages that utilizes the more correct jsonpb package. See: https://godoc.org/github.com/golang/protobuf/jsonpb

From: https://github.com/lyft/protoc-gen-star/tree/master/testdata/protoc-gen-example

Installation

go get github.com/hr3lxphr6j/protoc-gen-jsonify

Parameters

  • jsonpb: specify the jsonpb lib which you what to use, default is github.com/golang/protobuf/jsonpb

Examples

protoc \
    -I . \
    --go_out=":../generated" \
    --jsonify_out="jsonpb=github.com/gogo/protobuf/jsonpb:../generated" \
    example.proto

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages