Documentation ¶
Index ¶
- func Any[T any](_ T) bool
- func BoolCompare(a, b bool) int
- func Default[T any]() T
- func Equal(x, y any) bool
- func MapValuePointer[K comparable, V any](m map[K]V) map[K]*V
- func MapValueValue[K comparable, V any](m map[K]*V) map[K]V
- func NotAny[T any](_ T) bool
- func NumericCompare[T Float | Integer](v1, v2 T) int
- func OrderedCompare[T Ordered](t1, t2 T) int
- func Pointer[T any](v T) *T
- func Self[T any](x T) T
- func SlicePointer[T any](v []T) []*T
- func SliceValue[T any](v []*T) []T
- func Value[T any](p *T) T
- type Complex
- type Float
- type Integer
- type ListWrap
- type Ordered
- type Signed
- type Unsigned
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolCompare ¶
func MapValuePointer ¶
func MapValuePointer[K comparable, V any](m map[K]V) map[K]*V
func MapValueValue ¶
func MapValueValue[K comparable, V any](m map[K]*V) map[K]V
func NumericCompare ¶
func OrderedCompare ¶
func SlicePointer ¶
func SlicePointer[T any](v []T) []*T
func SliceValue ¶
func SliceValue[T any](v []*T) []T
Types ¶
type Complex ¶
type Complex interface { ~complex64 | ~complex128 }
Complex is a constraint that permits any complex numeric type. If future releases of Go add new predeclared complex numeric types, this constraint will be modified to include them.
type Float ¶
Float is a constraint that permits any floating-point type. If future releases of Go add new predeclared floating-point types, this constraint will be modified to include them.
type Integer ¶
Integer is a constraint that permits any integer type. If future releases of Go add new predeclared integer types, this constraint will be modified to include them.
type Ordered ¶
Ordered is a constraint that permits any ordered type: any type that supports the operators < <= >= >. If future releases of Go add new ordered types, this constraint will be modified to include them.