code: func min(currentMin, newValue time.Time) time.Time {
  	if currentMin.IsZero() || newValue.Before(currentMin) {
  		return newValue
  	}
  	return currentMin
  }
docs: // min returns minimum of the currentMin and newValue or newValue if the currentMin is not set.