// UnmarshalText is encoding.TextUnmarshaler interface implementation
UnmarshalText is encoding.TextUnmarshaler interface implementation
// UnmarshalText is encoding . TextUnmarshaler interface implementation
func (d *DurationSeconds) UnmarshalText(bts []byte) error {
	if len(bts) == 0 {
		return nil
	}
	v, err := strconv.ParseInt(string(bts), 10, 64)
	if err != nil {
		return err
	}
	dd := OfSeconds(int(v))
	*d = dd
	return nil
}
func ( d * DurationSeconds ) UnmarshalText ( bts [ ] byte ) error { if len ( bts ) == 0 { return nil } v , err := strconv . ParseInt ( string ( bts ) , 10 , 64 ) if err != nil { return err } dd := OfSeconds ( int ( v ) ) * d = dd return nil }
UnmarshalText is encoding.TextUnmarshaler interface implementation
UnmarshalText is encoding . TextUnmarshaler interface implementation
// Empty value