projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ead410cec5af01b0aa1415dccef891b9718edb98
[dotfiles/.git]
/
CheckReceiverNames.go
1
// Package pkg ...
2
package pkg
3
4
type T1 int
5
6
func (x T1) Fn1() {}
7
func (y T1) Fn2() {}
8
func (x T1) Fn3() {}
9
func (T1) Fn4() {}
10
func (_ T1) Fn5() {} // want `receiver name should not be an underscore, omit the name if it is unused`
11
func (self T1) Fn6() {} // want `receiver name should be a reflection of its identity`