Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LenSlicePtr ¶
LenSlicePtr return len(*ts) or 0 in case ts is nil.
func PtrValEqual ¶
func PtrValEqual[T comparable](a, b *T) bool
PtrValEqual returns true if both a and b are nil or their values are equal.
func PtrValEqualFn ¶
PtrValEqualFn return true if both a and b are nil or their values satisfy cmp.
func SliceEqual ¶
func SliceEqual[T comparable](a, b []T) bool
SliceEqual returns true if a and b contain the same elements. A nil slice and empty slice are considered equal.
func SliceEqualUnordered ¶
SliceEqualUnordered returns true if every element in a can be matched with an element in b, established by cmp. Each element in b can only be matched once. Additionally, the lengths of a and b must match, so each element in b also matches in element in a. If an element in a matches multiple elements in b, then the first available one is matched.
Types ¶
This section is empty.