protoc-gen-structify
is a protoc
plugin designed to generate structured Go data types from your Protocol Buffers (protobuf) definitions. It provides an easy way to create Go structs that match your protobuf messages, enhancing the integration between protobuf and Go.
- Automatically generates Go structs based on protobuf messages.
- Supports both simple and complex protobuf types.
- Maintains field names, types, and tags consistent with the protobuf definitions.
- Example usage available in the
examples
directory.
To install protoc-gen-structify
, run the following command:
go install github.com/cjp2600/protoc-gen-structify@latest
Make sure that your GOPATH/bin is added to your PATH environment variable so that protoc can find the plugin.
To use protoc-gen-structify with protoc, run the following command in your project directory: