TheThingsIndustries / protoc-gen-fieldmask

Generate field mask utilities from proto files
Apache License 2.0
11 stars 3 forks source link
fieldmask go golang protoc protocol-buffers protocolbuffers

protoc-gen-fieldmask

A protoc plug-in, which generates fieldmask utilities. Compatible with gogoproto extensions.

Installation:

GO111MODULE=on go install .

Usage:

For example, from root of this repository:

protoc -Itestdata -Ivendor --fieldmask_out=lang=gogo:$GOPATH/src testdata/testdata.proto

Note, you will need to run GO111MODULE=on go mod vendor before running the command above.