A command line tool for parsing and generating template files for Go (Golang).
- Generate files from templates
- Useful for go:generate commands
- Accepts data as json or from a file
- Templates are processed and compiled
- Process and compile multiple templates at once
go get github.com/abcum/tmpl
tmpl -file data.json file1.go.tmpl file2.go.tmpl
tmpl -data '["foo","bar","baz"]' file1.go.tmpl file2.go.tmpl