func MaxU16(val1, val2 uint16) uint16 {
	if val1 > val2 {
		return val1
	}
	return val2
}
MaxU16 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
}
func Max(val1, val2 int) int {
	if val1 > val2 {
		return val1
	}
	return val2
}
func BetweenU(val, min, max uint) uint {
	switch {
	case val < min:
		return min
	case val > max:
		return max
	default:
		return val
	}
}
func MinU(val1, val2 uint) uint {
	if val1 < val2 {
		return val1
	}
	return val2
}
func MaxU(val1, val2 uint) uint {
	if val1 > val2 {
		return val1
	}
	return val2
}
func Between8(val, min, max int8) int8 {
	switch {
	case val < min:
		return min
	case val > max:
		return max
	default:
		return val
	}
}
func Min8(val1, val2 int8) int8 {
	if val1 < val2 {
		return val1
	}
	return val2
}
func Max8(val1, val2 int8) int8 {
	if val1 > val2 {
		return val1
	}
	return val2
}
func Between16(val, min, max int16) int16 {
	switch {
	case val < min:
		return min
	case val > max:
		return max
	default:
		return val
	}
}
func Min16(val1, val2 int16) int16 {
	if val1 < val2 {
		return val1
	}
	return val2
}
func Max16(val1, val2 int16) int16 {
	if val1 > val2 {
		return val1
	}
	return val2
}
func Between32(val, min, max int32) int32 {
	switch {
	case val < min:
		return min
	case val > max:
		return max
	default:
		return val
	}
}
func Min32(val1, val2 int32) int32 {
	if val1 < val2 {
		return val1
	}
	return val2
}
func Max32(val1, val2 int32) int32 {
	if val1 > val2 {
		return val1
	}
	return val2
}
func Between64(val, min, max int64) int64 {
	switch {
	case val < min:
		return min
	case val > max:
		return max
	default:
		return val
	}
}
func Min64(val1, val2 int64) int64 {
	if val1 < val2 {
		return val1
	}
	return val2
}
func Max64(val1, val2 int64) int64 {
	if val1 > val2 {
		return val1
	}
	return val2
}
func BetweenU8(val, min, max uint8) uint8 {
	switch {
	case val < min:
		return min
	case val > max:
		return max
	default:
		return val
	}
}
func MinU8(val1, val2 uint8) uint8 {
	if val1 < val2 {
		return val1
	}
	return val2
}
func MaxU8(val1, val2 uint8) uint8 {
	if val1 > val2 {
		return val1
	}
	return val2
}
func BetweenU16(val, min, max uint16) uint16 {
	switch {
	case val < min:
		return min
	case val > max:
		return max
	default:
		return val
	}
}
func MinU16(val1, val2 uint16) uint16 {
	if val1 < val2 {
		return val1
	}
	return val2
}