whatcanGOwrong

This commit is contained in:
2024-09-19 21:38:24 -04:00
commit d0ae4d841d
17908 changed files with 4096831 additions and 0 deletions
@@ -0,0 +1,26 @@
cp foo.orig.go foo.go
! exec gofumpt -w -r foo foo.go
stderr 'the rewrite flag is no longer available; use "gofmt -r" instead\n'
cmp foo.orig.go foo.go
exec gofumpt -w -s foo.go
stderr 'warning: -s is deprecated as it is always enabled\n'
cmp foo.go foo.go.golden
exec gofumpt -d foo.go.golden
! stdout .
-- foo.orig.go --
package p
func f() {
println("foo")
}
-- foo.go.golden --
package p
func f() {
println("foo")
}