code: func formatRateReset(d time.Duration) string {
  	isNegative := d < 0
  	if isNegative {
  		d *= -1
  	}
  	secondsTotal := int(0.5 + d.Seconds())
  	minutes := secondsTotal / 60
  	seconds := secondsTotal - minutes*60
  
  	var timeString string
  	if minutes > 0 {
  		timeString = fmt.Sprintf("%dm%02ds", minutes, seconds)
  	} else {
  		timeString = fmt.Sprintf("%ds", seconds)
  	}
  
  	if isNegative {
  		return fmt.Sprintf("[rate limit was reset %v ago]", timeString)
  	}
  	return fmt.Sprintf("[rate reset in %v]", timeString)
  }
docs: // formatRateReset formats d to look like "[rate reset in 2s]" or
  // "[rate reset in 87m02s]" for the positive durations. And like "[rate limit was reset 87m02s ago]"
  // for the negative cases.