Versions in this module Expand all Collapse all v1 v1.1.2 Aug 19, 2022 v1.1.1 Aug 19, 2022 Changes in this version + func Clamp(x, lo, hi T) T + func ClampFunc(x, lo, hi T, less LessFn[T]) T + func Compare(a, b T, less LessFn[T]) int + func Equals(a, b T) bool + func HashBytes(b []byte) uint64 + func HashInt(i int) uint64 + func HashInt16(i int16) uint64 + func HashInt32(i int32) uint64 + func HashInt64(i int64) uint64 + func HashInt8(i int8) uint64 + func HashString(s string) uint64 + func HashUint(i uint) uint64 + func HashUint16(u uint16) uint64 + func HashUint32(u uint32) uint64 + func HashUint64(u uint64) uint64 + func HashUint8(u uint8) uint64 + func Less(a, b T) bool + func Max(a, b T) T + func MaxFunc(a, b T, less LessFn[T]) T + func Min(a, b T) T + func MinFunc(a, b T, less LessFn[T]) T + type EqualsFn func(a, b T) bool + type HashFn func(t T) uint64 + type LessFn func(a, b T) bool