Skip to content

TheCount/protoc-gen-tpl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Protobuf-driven file generation from templates.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages