.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.1.1 / unused / testdata / src / ignored / ignored.go
1 package pkg
2
3 //lint:ignore U1000 consider yourself used
4 type t1 struct{} // used
5 type t2 struct{} // used
6 type t3 struct{} // used
7
8 func (t1) fn1() {} // used
9 func (t1) fn2() {} // used
10 func (t1) fn3() {} // used
11
12 //lint:ignore U1000 be gone
13 func (t2) fn1() {} // used
14 func (t2) fn2() {} // unused
15 func (t2) fn3() {} // unused
16
17 func (t3) fn1() {} // unused
18 func (t3) fn2() {} // unused
19 func (t3) fn3() {} // unused
20
21 //lint:ignore U1000 consider yourself used
22 func fn() { // used
23         var _ t2
24         var _ t3
25 }
26
27 //lint:ignore U1000 bye
28 type t4 struct { // used
29         x int // used
30 }
31
32 func (t4) bar() {} // used
33
34 //lint:ignore U1000 consider yourself used
35 type t5 map[int]struct { // used
36         y int // used
37 }
38
39 //lint:ignore U1000 consider yourself used
40 type t6 interface { // used
41         foo() // used
42 }
43
44 //lint:ignore U1000 cpnsider yourself used
45 type t7 = struct { // used
46         z int // used
47 }
48
49 //lint:ignore U1000 consider yourself used
50 type t8 struct{} // used
51
52 func (t8) fn() { // used
53         otherFn()
54 }
55
56 func otherFn() {} // used