Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / mvdan.cc / gofumpt@v0.0.0-20200802201014-ab5a8192947d / testdata / scripts / comment-spaced.txt
1 gofumpt -w foo.go
2 cmp foo.go foo.go.golden
3
4 gofumpt -d foo.go.golden
5 ! stdout .
6
7 -- foo.go --
8 // +build tag
9
10 package p
11
12 //go:generate some command
13
14 //go:unknowndirective
15
16 //lint:disablefoo
17
18 //nolint
19
20 //nolint // explanation
21
22 //nolint:somelinter // explanation
23
24 //not actually: a directive
25
26 //TODO: do something
27
28 //export CgoFunc
29
30 //extern open
31 func c_open(name *byte, mode int, perm int) int
32
33 //line 123
34
35 //sys   Unlink(path string) (err error)
36
37 //sysnb Getpid() (pid int)
38
39 //foo is foo.
40 type foo int
41
42 //      comment with a tab.
43
44 //  comment with many spaces
45
46 //comment group
47 //123 numbers too
48
49 // comment group
50 //123 numbers too
51
52 //{
53 //this is probably code
54 //}
55
56 ////////////
57 // ascii art
58 //----------
59
60 //
61 -- foo.go.golden --
62 // +build tag
63
64 package p
65
66 //go:generate some command
67
68 //go:unknowndirective
69
70 //lint:disablefoo
71
72 //nolint
73
74 //nolint // explanation
75
76 //nolint:somelinter // explanation
77
78 // not actually: a directive
79
80 // TODO: do something
81
82 //export CgoFunc
83
84 //extern open
85 func c_open(name *byte, mode int, perm int) int
86
87 //line 123
88
89 //sys   Unlink(path string) (err error)
90
91 //sysnb Getpid() (pid int)
92
93 // foo is foo.
94 type foo int
95
96 //      comment with a tab.
97
98 //  comment with many spaces
99
100 // comment group
101 // 123 numbers too
102
103 // comment group
104 // 123 numbers too
105
106 //{
107 //this is probably code
108 //}
109
110 ////////////
111 // ascii art
112 //----------
113
114 //