github.com/golangci/go-tools@v0.0.0-20190318060251-af6baa5dc196/stylecheck/testdata/src/CheckReceiverNames/CheckReceiverNames.go (about) 1 // Package pkg ... 2 package pkg 3 4 type T1 int 5 6 func (x T1) Fn1() {} // MATCH "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() {} // MATCH "receiver name should not be an underscore, omit the name if it is unused" 11 func (self T1) Fn6() {} // MATCH "receiver name should be a reflection of its identity"