code: func evaluateTemplate(
  	templateContent string,
  	inventory interface{},
  	funcs template.FuncMap,
  	delimLeft, delimRight string,
  	templateOptions []string,
  ) (string, error) {
  	tmpl := template.New("").Funcs(funcs).Delims(delimLeft, delimRight)
  	if len(templateOptions) > 0 {
  		tmpl = tmpl.Option(templateOptions...)
  	}
  	tmpl, err := tmpl.Parse(templateContent)
  	if err != nil {
  		return "", err
  	}
  
  	var resBuffer bytes.Buffer
  	if err := tmpl.Execute(&resBuffer, inventory); err != nil {
  		return "", err
  	}
  
  	return resBuffer.String(), nil
  }
docs: // evaluateTemplate ...
  //
  // templateOptions: https://golang.org/pkg/text/template/#Template.Option