Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Map ¶
func Map[K, V comparable](a, b map[K]V) bool
Map a and b are equal if they contain exactly the same keys and values.
func MapF ¶
func MapF[K comparable, V any](a, b map[K]V, f func(V, V) bool) bool
MapF a and b are equal when len(a) == len(b), they share the same keys, and for each key k, f(a[k], b[k]) is == true.
func PointerRef ¶
func PointerRef[T comparable](a, b *T) bool
PointerRef: (a == nil && b == nil) || (*a == *b)
func Slice ¶
func Slice[T comparable](a, b []T) bool
Slice a and b are equal when len(a) == len(b) && ∀ i<len(a), a[i]==b[i].
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.