package
3.3.0+incompatible
Repository: https://github.com/google/agi.git
Documentation: pkg.go.dev

# Functions

Compare delivers all the differences it finds to the specified Handler.
DeepEqual compares a value against a reference and returns true if they are equal.
Diff returns the differences between the reference and the value.
IsNil returns true if o is nil (either directly or a boxed nil).
Register assigns the function f with signature func(comparator, T, T) to be used as the default comparator for instances of type T.

# Constants

Done is returned by custom comparison functions when the two objects require no further comparisons.
Fallback is returned by custom comparison functions when the comparison of the two objects should continue with the fallback comparison method.
Missing is used when values are found to be missing from a container.

# Variables

LimitReached the value panic is given to abort a comparison early.

# Structs

Comparator is passed to custom comparison functions holding the current comparison context.
Custom is a collection of custom comparators that will be used instead of the default comparison methods when comparing objects of the registered types.
EntryOp is the fragment operation type for map entry comparisons.
Fragment is an entry in a Path.

# Type aliases

Action is the optional return value type of functions passes to Register and Custom.Register.
Handler is the type for a callback that differences are delivered to.
IndexOp is the fragment operation type for array / slice index comparisons.
LengthOp is the fragment operation type for array / slice length comparisons.
MemberOp is the fragment operation type for member comparisons.
MissingOp is the fragment operation type for absent entries in arrays, slices and maps.
NilOp is the fragment operation type for nil-equality comparisons.
Path represents a path from the root of an object hierarchy.
TypeOp is the fragment operation type for type comparisons.