.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.1.1 / stylecheck / testdata / src / CheckContextFirstArg.disabled / CheckContextFirstArg.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/stylecheck/testdata/src/CheckContextFirstArg.disabled/CheckContextFirstArg.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/stylecheck/testdata/src/CheckContextFirstArg.disabled/CheckContextFirstArg.go
new file mode 100644 (file)
index 0000000..a96ab60
--- /dev/null
@@ -0,0 +1,12 @@
+// Package pkg ...
+package pkg
+
+import "context"
+
+type T int
+
+func fn1(int)                                   {}
+func fn2(context.Context, int)                  {}
+func fn3(context.Context, int, context.Context) {}
+func fn4(int, context.Context)                  {} // want `context\.Context should be the first argument of a function`
+func (T) FN(int, context.Context)               {} // want `context\.Context should be the first argument of a function`