// UnmarshalYAML is yaml.Unmarshaler interface implementation
UnmarshalYAML is yaml.Unmarshaler interface implementation
// UnmarshalYAML is yaml . Unmarshaler interface implementation
func (s *String) UnmarshalYAML(unmarshal func(interface{}) error) error {
	var candidate string
	if err := unmarshal(&candidate); err != nil {
		return err
	}
	s.set(candidate)
	return nil
}
func ( s * String ) UnmarshalYAML ( unmarshal func ( interface { } ) error ) error { var candidate string if err := unmarshal ( & candidate ) ; err != nil { return err } s . set ( candidate ) return nil }
UnmarshalYAML is yaml.Unmarshaler interface implementation
UnmarshalYAML is yaml . Unmarshaler interface implementation