Basic text template generator
Make flags package-level variables
Add README note about artifact downloads
Add helper scripts to generate release



You can also use your local clone with git send-email.


builds.sr.ht status

Simple wrapper around Go text/template to read self-contained template files and write generated results to a file.

This module depends on Sprig to provide additional template functions.

tmplgen is currently being used in Forge to generate source files. See vector.h.in for an example.


Please refer to the text/template docs for details on the template syntax. Additional Sprig function docs can be found here.

# tmplgen -o <filename> <filename>
tmplgen -o foo.h foo.h.in

tmplgen can also read from stdin and write to stdout.


Do what you want to!