+++ /dev/null
-gofumpt -w foo.go
-cmp foo.go foo.go.golden
-
-gofumpt -d foo.go.golden
-! stdout .
-
--- foo.go --
-package p
-
-func f() {
- if true {
-
- println()
- }
-
- for true {
- println()
-
- }
-
- {
-
-
- println(1, 2,
- 3, 4, `foo
- bar`)
-
-
- }
-
- {
-
- // comment directly before
- println()
-
- // comment after
-
- }
-
- {
-
- // comment before
-
- println()
- // comment directly after
-
- }
-}
--- foo.go.golden --
-package p
-
-func f() {
- if true {
- println()
- }
-
- for true {
- println()
- }
-
- {
- println(1, 2,
- 3, 4, `foo
- bar`)
- }
-
- {
- // comment directly before
- println()
-
- // comment after
- }
-
- {
- // comment before
-
- println()
- // comment directly after
- }
-}