func Interpolate(i interface{}, values map[string]string) error {
	text, err := yaml.Marshal(i)
	if err != nil {
		return err
	}

	text, err = mapInterpolate(text, values)
	if err != nil {
		return err
	}

	text = escape(text)

	return yaml.UnmarshalStrict(text, i)
}
// Interpolate an arbitrary YAML-marshallable interface.
Interpolate an arbitrary YAML-marshallable interface.
// Interpolate an arbitrary YAML - marshallable interface .
func Interpolate(i interface{}, values map[string]string) error {
	text, err := yaml.Marshal(i)
	if err != nil {
		return err
	}
	text, err = mapInterpolate(text, values)
	if err != nil {
		return err
	}
	text = escape(text)
	return yaml.UnmarshalStrict(text, i)
}
func Interpolate ( i interface { } , values map [ string ] string ) error { text , err := yaml . Marshal ( i ) if err != nil { return err } text , err = mapInterpolate ( text , values ) if err != nil { return err } text = escape ( text ) return yaml . UnmarshalStrict ( text , i ) }
Interpolate an arbitrary YAML-marshallable interface.
Interpolate an arbitrary YAML - marshallable interface .