MCPcopy Index your code
hub / github.com/expr-lang/expr / Equal

Function Equal

vm/runtime/helpers[generated].go:11–700  ·  view source on GitHub ↗
(a, b interface{})

Source from the content-addressed store, hash-verified

9)
10
11func Equal(a, b interface{}) bool {
12 switch x := a.(type) {
13 case uint:
14 switch y := b.(type) {
15 case uint:
16 return int(x) == int(y)
17 case uint8:
18 return int(x) == int(y)
19 case uint16:
20 return int(x) == int(y)
21 case uint32:
22 return int(x) == int(y)
23 case uint64:
24 return int(x) == int(y)
25 case int:
26 return int(x) == int(y)
27 case int8:
28 return int(x) == int(y)
29 case int16:
30 return int(x) == int(y)
31 case int32:
32 return int(x) == int(y)
33 case int64:
34 return int(x) == int(y)
35 case float32:
36 return float64(x) == float64(y)
37 case float64:
38 return float64(x) == float64(y)
39 }
40 case uint8:
41 switch y := b.(type) {
42 case uint:
43 return int(x) == int(y)
44 case uint8:
45 return int(x) == int(y)
46 case uint16:
47 return int(x) == int(y)
48 case uint32:
49 return int(x) == int(y)
50 case uint64:
51 return int(x) == int(y)
52 case int:
53 return int(x) == int(y)
54 case int8:
55 return int(x) == int(y)
56 case int16:
57 return int(x) == int(y)
58 case int32:
59 return int(x) == int(y)
60 case int64:
61 return int(x) == int(y)
62 case float32:
63 return float64(x) == float64(y)
64 case float64:
65 return float64(x) == float64(y)
66 }
67 case uint16:
68 switch y := b.(type) {

Callers 5

builtin.goFile · 0.92
RunMethod · 0.92
TestEqualFunction · 0.92
BenchmarkEqualFunction · 0.92
InFunction · 0.70

Calls 2

IsNilFunction · 0.85
EqualMethod · 0.65

Tested by 2

TestEqualFunction · 0.74
BenchmarkEqualFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…