funi
funi is template renderer with json/yaml data.
Install
go get github.com/kawaken/funi/cmd/funi
Usage
$ echo '{"key":"value"}' | funi "key is {{.key}}"
key is value
Template syntax is from text/template.
template - The Go Programming Language
Options
$ funi -h
Usage of funi:
-f string
data format 'json' or 'yaml' (default "json")
-i string
input file (default STDIN)
-o string
output file (default STDOUT)
-t string
template file path (required)
-t is required when command line argument is nothing.