MCPcopy
hub / github.com/tinygo-org/tinygo / interfaceEqual

Function interfaceEqual

src/runtime/interface.go:29–31  ·  view source on GitHub ↗

Return true iff both interfaces are equal.

(x, y interface{})

Source from the content-addressed store, hash-verified

27
28// Return true iff both interfaces are equal.
29func interfaceEqual(x, y interface{}) bool {
30 return reflectValueEqual(reflectlite.ValueOf(x), reflectlite.ValueOf(y))
31}
32
33func reflectValueEqual(x, y reflectlite.Value) bool {
34 // Note: doing a x.Type() == y.Type() comparison would not work here as that

Callers

nothing calls this directly

Calls 1

reflectValueEqualFunction · 0.85

Tested by

no test coverage detected