func toTOML(m map[string]interface{}) (string, error) {
	buf := bytes.NewBuffer([]byte{})
	enc := toml.NewEncoder(buf)
	if err := enc.Encode(m); err != nil {
		return "", errors.Wrap(err, "toTOML")
	}
	result, err := ioutil.ReadAll(buf)
	if err != nil {
		return "", errors.Wrap(err, "toTOML")
	}
	return string(bytes.TrimSpace(result)), nil
}
func toTOML(m map[string]interface{}) (string, error) {
	buf := bytes.NewBuffer([]byte{})
	enc := toml.NewEncoder(buf)
	if err := enc.Encode(m); err != nil {
		return "", errors.Wrap(err, "toTOML")
	}
	result, err := ioutil.ReadAll(buf)
	if err != nil {
		return "", errors.Wrap(err, "toTOML")
	}
	return string(bytes.TrimSpace(result)), nil
}
func toTOML ( m map [ string ] interface { } ) ( string , error ) { buf := bytes . NewBuffer ( [ ] byte { } ) enc := toml . NewEncoder ( buf ) if err := enc . Encode ( m ) ; err != nil { return " " , errors . Wrap ( err , " " ) } result , err := ioutil . ReadAll ( buf ) if err != nil { return " " , errors . Wrap ( err , " " ) } return string ( bytes . TrimSpace ( result ) ) , nil }
// toTOML converts the given structure into a deeply nested TOML string.
toTOML converts the given structure into a deeply nested TOML string .