code: func parseDuration(input string) (time.Duration, error) {
  	d, err := time.ParseDuration(input)
  	if err != nil {
  		n, err := strconv.ParseFloat(input, 64)
  		if err != nil {
  			return 0, err
  		}
  		d = time.Duration(n*1000) * time.Millisecond
  	}
  	return d, nil
  }
docs: // parseDuration takes a user's input as a string and attempts to convert it
  // into a time.Duration. If not given as a go-style duration string, the input
  // is assumed to be seconds as a float.