top

command atpl parses yaml and executes a go text/template against the contents of that yaml.

atpl -input data.yml -template config.tpl

or

atpl -template config.tpl < data.yml

This will parse the yaml data into a generic structure (i.e. interface{}, []interface{}, and map[string]interface{}) and execute the template config.tpl against that data.

Imports 1 package(s) ΒΆ

  1. gopkg.in/yaml.v2