code: func DurationFromUnit(u Unit) (time.Duration, error) {
  	if duration, found := unitsToDuration[u]; found {
  		return duration, nil
  	}
  
  	return 0, errConvertUnitToDuration
  }
docs: // DurationFromUnit creates a time duration from a time unit.