.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.1.1-0.20210319172145-bda8f5cee399 / refactor / eg / testdata / A2.golden
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.1.1-0.20210319172145-bda8f5cee399/refactor/eg/testdata/A2.golden b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.1.1-0.20210319172145-bda8f5cee399/refactor/eg/testdata/A2.golden
new file mode 100644 (file)
index 0000000..0e4ca44
--- /dev/null
@@ -0,0 +1,13 @@
+package A2
+
+// This refactoring causes addition of "errors" import.
+// TODO(adonovan): fix: it should also remove "fmt".
+
+import (
+       "errors"
+       myfmt "fmt"
+)
+
+func example(n int) {
+       errors.New("")
+}