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 / _CheckBlankImports.disabled / CheckBlankImports-2.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/_CheckBlankImports.disabled/CheckBlankImports-2.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/stylecheck/testdata/src/_CheckBlankImports.disabled/CheckBlankImports-2.go
new file mode 100644 (file)
index 0000000..87f9386
--- /dev/null
@@ -0,0 +1,43 @@
+// Package pkg ...
+package pkg
+
+import _ "fmt" // want `blank import`
+
+import _ "fmt" // want `blank import`
+import _ "fmt"
+import _ "fmt"
+
+import _ "fmt" // want `blank import`
+import "strings"
+import _ "fmt" // want `blank import`
+
+// This is fine
+import _ "fmt"
+
+// This is fine
+import _ "fmt"
+import _ "fmt"
+import _ "fmt"
+
+// This is fine
+import _ "fmt"
+import "bytes"
+import _ "fmt" // want `blank import`
+
+import _ "fmt" // This is fine
+
+// This is not fine
+import (
+       _ "fmt" // want `blank import`
+)
+
+import (
+       _ "fmt" // want `blank import`
+       "strconv"
+       // This is fine
+       _ "fmt"
+)
+
+var _ = strings.NewReader
+var _ = bytes.NewBuffer
+var _ = strconv.IntSize