func Abs8(val int8) int8 {
	if val < 0 {
		return val * -1
	}
	return val
}
Abs8 returns absolute 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
}
func MaxU16(val1, val2 uint16) uint16 {
	if val1 > val2 {
		return val1
	}
	return val2
}
func BetweenU32(val, min, max uint32) uint32 {
	switch {
	case val < min:
		return min
	case val > max:
		return max
	default:
		return val
	}
}
func MinU32(val1, val2 uint32) uint32 {
	if val1 < val2 {
		return val1
	}
	return val2
}
func MaxU32(val1, val2 uint32) uint32 {
	if val1 > val2 {
		return val1
	}
	return val2
}
func BetweenU64(val, min, max uint64) uint64 {
	switch {
	case val < min:
		return min
	case val > max:
		return max
	default:
		return val
	}
}
func MinU64(val1, val2 uint64) uint64 {
	if val1 < val2 {
		return val1
	}
	return val2
}
func MaxU64(val1, val2 uint64) uint64 {
	if val1 > val2 {
		return val1
	}
	return val2
}
func BetweenF(val, min, max float64) float64 {
	return BetweenF64(val, min, max)
}
func BetweenF32(val, min, max float32) float32 {
	switch {
	case val < min:
		return min
	case val > max:
		return max
	default:
		return val
	}
}
func BetweenF64(val, min, max float64) float64 {
	switch {
	case val < min:
		return min
	case val > max:
		return max
	default:
		return val
	}
}
func Abs(val int) int {
	if val < 0 {
		return val * -1
	}
	return val
}