Versions in this module Expand all Collapse all v0 v0.19.4 Nov 1, 2026 Changes in this version + var ErrTypeMismatchStrict = "type mismatch: cannot assign %s to %s" + func CheckTypeCompatibility(srcType, dstType reflect.Type) error + func Chunk[T any](slice []T, size int) [][]T + func ContainsAll[T comparable](slice []T, values ...T) bool + func ContainsAny[T comparable](slice []T, values ...T) bool + func Contains[T comparable](slice []T, value T) bool + func EnsureStructDefaults(v reflect.Value) + func ExtractGormColumn(tag string) string + func ExtractJSONKey(fieldType reflect.StructField) string + func ExtractPBTagValue(tag string, key string) string + func Filter[T any](slice []T, predicate func(T) bool) []T + func HasJSONTagOption(fieldType reflect.StructField, options ...string) bool + func IndexOf[T comparable](slice []T, value T) int + func IsExportedField(field reflect.StructField) bool + func JSONFieldName(fieldType reflect.StructField) string + func MapTR[T any, R any](slice []T, mapper func(T) R) []R + func ResolveModelKey(fieldType reflect.StructField) string + func ResolvePBKey(fieldType reflect.StructField) string + func Reverse[T any](slice []T) []T + func ToFloat64OK(value interface{}) (float64, bool) + func Unique[T comparable](slices ...[]T) []T + func UnwrapModelValue(iface interface{}) interface + type BoundError int + const BoundErrorAboveMax + const BoundErrorBelowMin + const BoundErrorInvalidRange + const BoundErrorNegative + const BoundErrorNone + const BoundErrorZeroStep + type BoundType int + const BoundClosed + const BoundLeftOpen + const BoundLeftUnbounded + const BoundOpen + const BoundRightOpen + const BoundRightUnbounded + const BoundUnbounded + type Bounds struct + Max T + Min T + Names map[string]T + type Complex interface + type Convertible interface + type Float interface + type IntFaceKV KeyValueMode[int, interface{}] + type IntFaceMap interface + type IntFloatKV KeyValueMode[int, float64] + type IntFloatMap interface + type IntIntKV KeyValueMode[int, int] + type IntMap interface + type IntUintKV KeyValueMode[int, uint] + type IntUintMap interface + type Integer interface + type KVMap interface + type KeyValueMode struct + Key K + Value V + type Map interface + type MinMaxFunc func(a, b T) T + type Numerical interface + type Ordered interface + type RangeMode int + const RangeModeList + const RangeModeNormal + const RangeModeStep + const RangeModeWildcard + type RangeParser func(expr string, bounds Bounds[T]) (T, error) + type RangeTransformer func(value T, bounds Bounds[T]) (R, error) + type RangeValidator func(value T, bounds Bounds[T]) BoundError + type StrFaceKV KeyValueMode[string, interface{}] + type StrFaceMap interface + type StrFloatKV KeyValueMode[string, float64] + type StrFloatMap interface + type StrIntKV KeyValueMode[string, int] + type StrIntMap interface + type StrMap interface + type StrStrKV KeyValueMode[string, string] + type StrUintKV KeyValueMode[string, uint] + type StrUintMap interface + type TimeUnit int + const DayOfMonth + const DayOfWeek + const Hour + const Minute + const Month + const Second + const Year + type UintFaceKV KeyValueMode[uint, interface{}] + type UintFaceMap interface + type UintFloatKV KeyValueMode[uint, float64] + type UintFloatMap interface + type UintIntKV KeyValueMode[uint, int] + type UintIntMap interface + type UintMap interface + type UintUintKV KeyValueMode[uint, uint] + type Unsigned interface