.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.1.1 / stylecheck / testdata / src / CheckReceiverNames / CheckReceiverNames.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/stylecheck/testdata/src/CheckReceiverNames/CheckReceiverNames.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/stylecheck/testdata/src/CheckReceiverNames/CheckReceiverNames.go
new file mode 100644 (file)
index 0000000..ead410c
--- /dev/null
@@ -0,0 +1,11 @@
+// Package pkg ...
+package pkg
+
+type T1 int
+
+func (x T1) Fn1()    {}
+func (y T1) Fn2()    {}
+func (x T1) Fn3()    {}
+func (T1) Fn4()      {}
+func (_ T1) Fn5()    {} // want `receiver name should not be an underscore, omit the name if it is unused`
+func (self T1) Fn6() {} // want `receiver name should be a reflection of its identity`