.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / mvdan.cc / gofumpt@v0.1.0 / testdata / scripts / comment-spaced.txt
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/mvdan.cc/gofumpt@v0.1.0/testdata/scripts/comment-spaced.txt b/.config/coc/extensions/coc-go-data/tools/pkg/mod/mvdan.cc/gofumpt@v0.1.0/testdata/scripts/comment-spaced.txt
new file mode 100644 (file)
index 0000000..acc0fb8
--- /dev/null
@@ -0,0 +1,118 @@
+gofumpt -w foo.go
+cmp foo.go foo.go.golden
+
+gofumpt -d foo.go.golden
+! stdout .
+
+-- foo.go --
+// +build tag
+
+package p
+
+//go:generate some command
+
+//go:unknowndirective
+
+//lint:disablefoo
+
+//nolint
+
+//nolint // explanation
+
+//nolint:somelinter // explanation
+
+//not actually: a directive
+
+//https://just.one/url
+
+//TODO: do something
+
+//export CgoFunc
+
+//extern open
+func c_open(name *byte, mode int, perm int) int
+
+//line 123
+
+//sys   Unlink(path string) (err error)
+
+//sysnb        Getpid() (pid int)
+
+//foo is foo.
+type foo int
+
+//     comment with a tab.
+
+//  comment with many spaces
+
+//comment group
+//123 numbers too
+
+// comment group
+//123 numbers too
+
+//{
+//this is probably code
+//}
+
+////////////
+// ascii art
+//----------
+
+//
+-- foo.go.golden --
+// +build tag
+
+package p
+
+//go:generate some command
+
+//go:unknowndirective
+
+//lint:disablefoo
+
+//nolint
+
+//nolint // explanation
+
+//nolint:somelinter // explanation
+
+// not actually: a directive
+
+// https://just.one/url
+
+// TODO: do something
+
+//export CgoFunc
+
+//extern open
+func c_open(name *byte, mode int, perm int) int
+
+//line 123
+
+//sys   Unlink(path string) (err error)
+
+//sysnb        Getpid() (pid int)
+
+// foo is foo.
+type foo int
+
+//     comment with a tab.
+
+//  comment with many spaces
+
+// comment group
+// 123 numbers too
+
+// comment group
+// 123 numbers too
+
+//{
+//this is probably code
+//}
+
+////////////
+// ascii art
+//----------
+
+//