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