-
Notifications
You must be signed in to change notification settings - Fork 7
/
baseline.go
110 lines (102 loc) · 5.33 KB
/
baseline.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
package gospeed
var x int
var u uint
var x32 int32
var u32 uint32
var x64 int64
var u64 uint64
var in any = 0
var h map[int]int = map[int]int{10000000: 0, 10000001: 1}
var hs map[string]int = map[string]int{"10000000": 0, "10000001": 1}
var f func() = func() {}
var farg1 func(x any) = func(x any) {}
var farg2 func(x, y any) = func(x, y any) {}
var farg3 func(x, y, z any) = func(x, y, z any) {}
var farg4 func(x, y, z, a any) = func(x, y, z, a any) {}
var farg5 func(x, y, z, a, b any) = func(x, y, z, a, b any) {}
var farg6 func(x, y, z, a, b, c any) = func(x, y, z, a, b, c any) {}
var farg7 func(x, y, z, a, b, c, d any) = func(x, y, z, a, b, c, d any) {}
var farg8 func(x, y, z, a, b, c, d, e any) = func(x, y, z, a, b, c, d, e any) {}
var farg9 func(x, y, z, a, b, c, d, e, f any) = func(x, y, z, a, b, c, d, e, f any) {}
var farg10 func(x, y, z, a, b, c, d, e, f, g any) = func(x, y, z, a, b, c, d, e, f, g any) {}
var fvarargs func(x ...any) = func(x ...any) {}
var fint1 func(x int) = func(x int) {}
var fint2 func(x, y int) = func(x, y int) {}
var fint3 func(x, y, z int) = func(x, y, z int) {}
var fint4 func(x, y, z, a int) = func(x, y, z, a int) {}
var fint5 func(x, y, z, a, b int) = func(x, y, z, a, b int) {}
var fint6 func(x, y, z, a, b, c int) = func(x, y, z, a, b, c int) {}
var fint7 func(x, y, z, a, b, c, d int) = func(x, y, z, a, b, c, d int) {}
var fint8 func(x, y, z, a, b, c, d, e int) = func(x, y, z, a, b, c, d, e int) {}
var fint9 func(x, y, z, a, b, c, d, e, f int) = func(x, y, z, a, b, c, d, e, f int) {}
var fint10 func(x, y, z, a, b, c, d, e, f, g int) = func(x, y, z, a, b, c, d, e, f, g int) {}
var fvarints func(x ...int) = func(x ...int) {}
type dummyInterface1 interface {
m1()
}
type dummyInterface2 interface {
dummyInterface1
m1arg1(x any)
}
type dummyStructure struct {
i int
in any
s []int
h map[int]int
}
func (d dummyStructure) m1() {}
func (d dummyStructure) m1arg1(a any) {}
func (d dummyStructure) m1int1(a int) {}
func (d dummyStructure) m1arg2(a, b any) {}
func (d dummyStructure) m1int2(a, b int) {}
func (d dummyStructure) m1arg3(a, b, c any) {}
func (d dummyStructure) m1int3(a, b, c int) {}
func (d dummyStructure) m1arg4(a, b, c, e any) {}
func (d dummyStructure) m1int4(a, b, c, e int) {}
func (d dummyStructure) m1arg5(a, b, c, e, f any) {}
func (d dummyStructure) m1int5(a, b, c, e, f int) {}
func (d dummyStructure) m1arg6(a, b, c, e, f, g any) {}
func (d dummyStructure) m1int6(a, b, c, e, f, g int) {}
func (d dummyStructure) m1arg7(a, b, c, e, f, g, h any) {}
func (d dummyStructure) m1int7(a, b, c, e, f, g, h int) {}
func (d dummyStructure) m1arg8(a, b, c, e, f, g, h, i any) {}
func (d dummyStructure) m1int8(a, b, c, e, f, g, h, i int) {}
func (d dummyStructure) m1arg9(a, b, c, e, f, g, h, i, j any) {}
func (d dummyStructure) m1int9(a, b, c, e, f, g, h, i, j int) {}
func (d dummyStructure) m1arg10(a, b, c, e, f, g, h, i, j, k any) {}
func (d dummyStructure) m1int10(a, b, c, e, f, g, h, i, j, k int) {}
func (d dummyStructure) m1varargs(x ...any) {}
func (d dummyStructure) m1varints(x ...int) {}
func (d *dummyStructure) m2() {}
func (d dummyStructure) m2arg1(a any) {}
func (d dummyStructure) m2int1(a int) {}
func (d dummyStructure) m2arg2(a, b any) {}
func (d dummyStructure) m2int2(a, b int) {}
func (d dummyStructure) m2arg3(a, b, c any) {}
func (d dummyStructure) m2int3(a, b, c int) {}
func (d dummyStructure) m2arg4(a, b, c, e any) {}
func (d dummyStructure) m2int4(a, b, c, e int) {}
func (d dummyStructure) m2arg5(a, b, c, e, f any) {}
func (d dummyStructure) m2int5(a, b, c, e, f int) {}
func (d dummyStructure) m2arg6(a, b, c, e, f, g any) {}
func (d dummyStructure) m2int6(a, b, c, e, f, g int) {}
func (d dummyStructure) m2arg7(a, b, c, e, f, g, h any) {}
func (d dummyStructure) m2int7(a, b, c, e, f, g, h int) {}
func (d dummyStructure) m2arg8(a, b, c, e, f, g, h, i any) {}
func (d dummyStructure) m2int8(a, b, c, e, f, g, h, i int) {}
func (d dummyStructure) m2arg9(a, b, c, e, f, g, h, i, j any) {}
func (d dummyStructure) m2int9(a, b, c, e, f, g, h, i, j int) {}
func (d dummyStructure) m2arg10(a, b, c, e, f, g, h, i, j, k any) {}
func (d dummyStructure) m2int10(a, b, c, e, f, g, h, i, j, k int) {}
func (d *dummyStructure) m2varargs(x ...any) {}
func (d *dummyStructure) m2varints(x ...int) {}
func (d dummyStructure) get(i int) (r int) { return d.s[i] }
func (d dummyStructure) set(i, x int) { d.s[i] = x }
var dummy dummyStructure = dummyStructure{}
var di any = dummyStructure{}
type dummyInterface3 interface {
get(int) int
set(int, int)
}
var dummyAccessor dummyStructure = dummyStructure{s: []int{0}}
var dai dummyInterface3 = dummyStructure{s: []int{0}}