code: func (d *MyDuration) UnmarshalText(text []byte) error {
  	res, err := time.ParseDuration(string(text))
  	if err != nil {
  		return err
  	}
  	d.Duration = res
  	return nil
  }
docs: // UnmarshalText is used to convert from text to Duration