code: func ToToml(v interface{}) string {
  	b := bytes.NewBuffer(nil)
  	e := toml.NewEncoder(b)
  	err := e.Encode(v)
  	if err != nil {
  		return err.Error()
  	}
  	return b.String()
  }
docs: // ToToml takes an interface, marshals it to toml, and returns a string. It will
  // always return a string, even on marshal error (empty string).
  //
  // This is designed to be called from a template.