Documentation ¶
Overview ¶
protoc-gen-validator is a plugin for the Google protocol buffer compiler to generate Go code. Run it bu building this program and putting it in your path with the name
protoc-gen-validator
That word 'validator' at the end becomes part of the option string set for the protocol compiler, so once the protocol compiler (protoc) is installed you can run
protoc --validator_out=:out_directory --go_out=output_directory input_directory/file.proto
to generate vine code for the protocol defined by file.proto. With input that, the output will be written to
output_directory/file.validator.pb.go
The generated code is documented in the package comment for the library.
See the README and documentation is protocol buffers to learn more:
https://developers.google.com/protocol-buffers/
Click to show internal directories.
Click to hide internal directories.