MCPcopy
hub / github.com/duke-git/lancet / Equal

Function Equal

compare/compare.go:33–35  ·  view source on GitHub ↗

Equal checks if two values are equal or not. (check both type and value) Play: https://go.dev/play/p/wmVxR-to4lz

(left, right any)

Source from the content-addressed store, hash-verified

31// Equal checks if two values are equal or not. (check both type and value)
32// Play: https://go.dev/play/p/wmVxR-to4lz
33func Equal(left, right any) bool {
34 return compareValue(equal, left, right)
35}
36
37// EqualValue checks if two values are equal or not. (check value only)
38// Play: https://go.dev/play/p/fxnna_LLD9u

Callers 2

TestEqualFunction · 0.70
ExampleEqualFunction · 0.70

Calls 1

compareValueFunction · 0.85

Tested by 2

TestEqualFunction · 0.56
ExampleEqualFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…