projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
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
/
stylecheck
/
testdata
/
src
/
CheckReceiverNamesIdentical
/
CheckReceiverNames.go
1
// Package pkg ...
2
package pkg
3
4
type T1 int
5
6
func (x T1) Fn1() {} // want `methods on the same type should have the same receiver name`
7
func (y T1) Fn2() {}
8
func (x T1) Fn3() {}
9
func (T1) Fn4() {}
10
func (_ T1) Fn5() {}
11
func (self T1) Fn6() {}
12
13
func (bar T3) Fn2() {} // want `1x "bar", 1x "meow"`
14
func (meow T3) Fn3() {}
15
16
func (bar T4) Fn2() {}