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
/
func-newlines.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
package p
9
10
func f1() {
11
12
println("multiple")
13
14
println("statements")
15
16
}
17
18
func f2() {
19
20
// comment directly before
21
println()
22
23
// comment after
24
25
}
26
27
func _() {
28
f3 := func() {
29
30
println()
31
32
}
33
}
34
-- foo.go.golden --
35
package p
36
37
func f1() {
38
println("multiple")
39
40
println("statements")
41
}
42
43
func f2() {
44
// comment directly before
45
println()
46
47
// comment after
48
}
49
50
func _() {
51
f3 := func() {
52
println()
53
}
54
}