Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EqualFunc ¶
type EqualFunc func(a, b interface{}) bool
EqualFunc is a function that implements Equalitor.
func NewHashEqualitor ¶
func NewHashEqualitor() EqualFunc
NewHashEqualitor returns an EqualFunc that returns true if the hashes of the given arguments are equal, false otherwise.
This function panics if an error is encountered generating a hash for either argument.
Click to show internal directories.
Click to hide internal directories.