.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.1.0 / refactor / eg / testdata / I.template
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.1.0/refactor/eg/testdata/I.template b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.1.0/refactor/eg/testdata/I.template
new file mode 100644 (file)
index 0000000..d03e774
--- /dev/null
@@ -0,0 +1,14 @@
+// +build ignore
+
+package templates
+
+import (
+       "errors"
+       "fmt"
+)
+
+func before(s string) error { return fmt.Errorf("%s", s) }
+func after(s string) error {
+       n := fmt.Sprintf("error - %s", s)
+       return errors.New(n)
+}