.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / mvdan.cc / gofumpt@v0.1.0 / testdata / scripts / decl-group-many.txt
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/mvdan.cc/gofumpt@v0.1.0/testdata/scripts/decl-group-many.txt b/.config/coc/extensions/coc-go-data/tools/pkg/mod/mvdan.cc/gofumpt@v0.1.0/testdata/scripts/decl-group-many.txt
new file mode 100644 (file)
index 0000000..104c66d
--- /dev/null
@@ -0,0 +1,58 @@
+[!gofumpt] skip 'would remove the unused imports'
+
+gofumpt -w foo.go
+cmp foo.go foo.go.golden
+
+gofumpt -d foo.go.golden
+! stdout .
+
+-- foo.go --
+package p
+
+var single = "foo"
+var another = "bar"
+
+const one = 'q'
+const two = 'w'
+const three = 'e'
+const four = 'r'
+
+var not = 'a'
+
+var to = 's'
+// comment
+var be = 'd'
+const joined = 'f'
+
+const inline1 = "s1" // c1
+const inline2 = "s2" // c2
+const inline3 = "s3" // c3
+-- foo.go.golden --
+package p
+
+var (
+       single  = "foo"
+       another = "bar"
+)
+
+const (
+       one   = 'q'
+       two   = 'w'
+       three = 'e'
+       four  = 'r'
+)
+
+var not = 'a'
+
+var to = 's'
+
+// comment
+var be = 'd'
+
+const joined = 'f'
+
+const (
+       inline1 = "s1" // c1
+       inline2 = "s2" // c2
+       inline3 = "s3" // c3
+)