projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
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
/
decl-group-many.txt
1
[!gofumpt] skip 'would remove the unused imports'
2
3
gofumpt -w foo.go
4
cmp foo.go foo.go.golden
5
6
gofumpt -d foo.go.golden
7
! stdout .
8
9
-- foo.go --
10
package p
11
12
var single = "foo"
13
var another = "bar"
14
15
const one = 'q'
16
const two = 'w'
17
const three = 'e'
18
const four = 'r'
19
20
var not = 'a'
21
22
var to = 's'
23
// comment
24
var be = 'd'
25
const joined = 'f'
26
27
const inline1 = "s1" // c1
28
const inline2 = "s2" // c2
29
const inline3 = "s3" // c3
30
-- foo.go.golden --
31
package p
32
33
var (
34
single = "foo"
35
another = "bar"
36
)
37
38
const (
39
one = 'q'
40
two = 'w'
41
three = 'e'
42
four = 'r'
43
)
44
45
var not = 'a'
46
47
var to = 's'
48
49
// comment
50
var be = 'd'
51
52
const joined = 'f'
53
54
const (
55
inline1 = "s1" // c1
56
inline2 = "s2" // c2
57
inline3 = "s3" // c3
58
)