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 / CheckExportedFunctionDocs / CheckExportedFunctionDocs.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/stylecheck/testdata/src/CheckExportedFunctionDocs/CheckExportedFunctionDocs.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/stylecheck/testdata/src/CheckExportedFunctionDocs/CheckExportedFunctionDocs.go
new file mode 100644 (file)
index 0000000..f711c1b
--- /dev/null
@@ -0,0 +1,21 @@
+package pkg
+
+// whatever
+func foo() {}
+
+// Foo is amazing
+func Foo() {}
+
+// Whatever // want `comment on exported function`
+func Bar() {}
+
+type T struct{}
+
+// Whatever
+func (T) foo() {}
+
+// Foo is amazing
+func (T) Foo() {}
+
+// Whatever // want `comment on exported method`
+func (T) Bar() {}