package roverd func clampInt(value, min, max int) int { if value < min { return min } if value > max { return max } return value }