func Max(val1, val2 int) int {
	if val1 > val2 {
		return val1
	}
	return val2
}
Max returns a greater value
package mathutil
import (
	"math"
)
func Between(val, min, max int) int {
	switch {
	case val < min:
		return min
	case val > max:
		return max
	default:
		return val
	}
}
func Min(val1, val2 int) int {
	if val1 < val2 {
		return val1
	}
	return val2
}