Generated code for validate field for protobuf message.
github.com/golang/protobuf v1.5.2
go get -u -d github.com/yu31/proto-go-plugin
go install github.com/yu31/proto-go-plugin/cmd/protoc-gen-govalidator
The proto file see govalidator_test.proto
And generated by
protoc -I=. -I="${GOPATH}"/src --go_opt=paths=source_relative --govalidator_opt=paths=source_relative --go_out=. --govalidator_out=. ./tests/govalidatortest/govalidator_test.proto
The code generated see govalidator_test.validator.pb.go