Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / unused / testdata / src / quiet / quiet.go
1 package pkg
2
3 type iface interface { // want `iface`
4         foo()
5 }
6
7 type t1 struct{} // want `t1`
8 func (t1) foo()  {}
9
10 type t2 struct{}
11
12 func (t t2) bar(arg int) (ret int) { return 0 } // want `bar`
13
14 func init() {
15         _ = t2{}
16 }
17
18 type t3 struct { // want `t3`
19         a int
20         b int
21 }
22
23 type T struct{}
24
25 func fn1() { // want `fn1`
26         meh := func(arg T) {
27         }
28         meh(T{})
29 }
30
31 type localityList []int // want `localityList`
32
33 func (l *localityList) Fn1() {}
34 func (l *localityList) Fn2() {}