Retracted : v1.8.0–v1.9.0 broke reflect.DeepEqual for Map/Set due to an unexported
func field in the tree struct. Fixed in v1.10.0.
Discover Packages
github.com/arr-ai/frozen
internal
pkg
value
package
Version:
v1.9.0
Opens a new window with list of versions in this module.
Published: Mar 2, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Equal returns true if a and b are equal. It dispatches directly through
type assertions to avoid the overhead of a sync.Map cache lookup, which
costs more than the dispatch itself.
func EqualFuncFor[T any ]() func(a, b T) bool
EqualFuncFor returns an equality tester optimised for T.
type Equaler[T any ] interface {
Equal(t T) bool
}
Equaler supports equality comparison with values of the same type.
type Samer interface {
Same(a any ) bool
}
Samer supports equality comparison with values of any type. It is the
non-generic counterpart of Equaler.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.