protoc-gen-go-pjson
Golang types generator for pjrpc router.
Install
go get -u gitlab.com/pjrpc/pjrpc/cmd/protoc-gen-go-pjson
Usage
protoc \
--go-pjson_out=. --go-pjson_opt=paths=source_relative \
protodir/file.proto
Flags
without_omitempty
- generate json tags without omitempty
--go-pjson_out=without_omitempty=true:. --go-pjson_opt=paths=source_relative \