Skip to content

cjp2600/protoc-gen-structify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

protoc-gen-structify

Go Report Card

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.

Features

  • 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.

Installation

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.

Usage

To use protoc-gen-structify with protoc, run the following command in your project directory: