protoc-gen-tpl

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2022 License: MIT

README

protoc-gen-tpl

This is a protoc plugin to gather metadata (aka options) from protobuf source files and feed it into a template to generate arbitrary files.

Warning: this software is still in early alpha stage and has not been thoroughly tested.

Installation

You should have protoc installed and a working Go environment.

go get github.com/TheCount/protoc-gen-tpl/cmd/protoc-gen-tpl

In a terminal, run protoc --tpl_out=. yourfile.proto to get help on usage and options.

Known bugs

Templates do not render repeated enum fields or maps with enums as values correctly.

Directories

Path Synopsis
cmd
Package gen generates an output file from a template glob by applying specific protobuf option data collected from the input files.
Package gen generates an output file from a template glob by applying specific protobuf option data collected from the input files.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL