forked from mvdan/gofumpt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
decl-group-many.txt
99 lines (76 loc) · 1.07 KB
/
decl-group-many.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
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 v1 = 's'
//go:embed hello.txt
var v2 = 'd'
var v1 = 's'
// comment line 1
// comment line 2
var v2 = 'd'
var v1 = "mixed"
const c1 = "mixed"
//go:embed hello.txt
var v1 = 's'
var v2 = 'd'
var v3 = 'd'
// comment
var v1 = 's'
var v2 = 'd'
/* comment */
var v3 = 'd'
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 v1 = 's'
//go:embed hello.txt
var v2 = 'd'
var (
v1 = 's'
// comment line 1
// comment line 2
v2 = 'd'
)
var v1 = "mixed"
const c1 = "mixed"
//go:embed hello.txt
var v1 = 's'
var (
v2 = 'd'
v3 = 'd'
)
// comment
var (
v1 = 's'
v2 = 'd'
/* comment */
v3 = 'd'
)
const (
inline1 = "s1" // c1
inline2 = "s2" // c2
inline3 = "s3" // c3
)