Documentation ¶
Index ¶
- func AssertIs[T comparable](preamble string, actual T, expect T)
- func AssertOneOf[T comparable](preamble string, actual T, list ...T)
- func AssertValid(obj IsValider)
- func AssertValidName(kind string, str string)
- func BuildEnumMap[T ~byte](size T, goNames []string, names []string) map[string]T
- func Contains[K comparable, V any](in map[K]V, key K) bool
- func CopyList[T any](in []T) []T
- func CopyMap[K comparable, V any](in map[K]V) map[K]V
- func FinishEnumMap[T ~byte](m map[string]T)
- func IsOneOf[T comparable](actual T, list ...T) bool
- func IsValidName(str string) bool
- func Lookup[K comparable, V any](in map[K]V, key K, format string, args ...any) V
- func NotValidError(obj any) error
- func RangeErr(index uint, size uint) error
- func RecycleList[T any](ptr *[]T, initCapacity uint)
- func RecycleMap[K comparable, V any](ptr *map[K]V, initCapacity uint)
- type IsValider
- type Void
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertIs ¶
func AssertIs[T comparable](preamble string, actual T, expect T)
func AssertOneOf ¶
func AssertOneOf[T comparable](preamble string, actual T, list ...T)
func AssertValid ¶
func AssertValid(obj IsValider)
func AssertValidName ¶
func BuildEnumMap ¶
func Contains ¶
func Contains[K comparable, V any](in map[K]V, key K) bool
func CopyMap ¶
func CopyMap[K comparable, V any](in map[K]V) map[K]V
func FinishEnumMap ¶
func IsOneOf ¶
func IsOneOf[T comparable](actual T, list ...T) bool
func IsValidName ¶
func NotValidError ¶
func RecycleList ¶
func RecycleMap ¶
func RecycleMap[K comparable, V any](ptr *map[K]V, initCapacity uint)
Types ¶
Click to show internal directories.
Click to hide internal directories.