gomplate

Command-line tool for processing Golang templates with data

brewmacoslinux
Try with needOr install directly
Source

About

Command-line Golang template processor

Commands

gomplate

Examples

Process a template file with JSON data$ gomplate -f template.tmpl -d data=data.json
Render template from stdin and output to stdout$ echo 'Hello {{.name}}' | gomplate -d name=World
Generate configuration file from template with inline data$ gomplate -f config.tmpl -d env=env:// -o config.yaml