duration.go
func (d *Duration) UnmarshalText(data []byte) error { // validation is performed later on
	dd, err := ParseDuration(string(data))
	if err != nil {
		return err
	}
	*d = Duration(dd)
	return nil
}
func (d *Duration) UnmarshalText(data []byte) error { // validation is performed later on
	dd, err := ParseDuration(string(data))
	if err != nil {
		return err
	}
	*d = Duration(dd)
	return nil
}
func ( d * Duration ) UnmarshalText ( data [ ] byte ) error { // validation is performed later on dd , err := ParseDuration ( string ( data ) ) if err != nil { return err } * d = Duration ( dd ) return nil }
// UnmarshalText hydrates this instance from text
UnmarshalText hydrates this instance from text