Files
LearnGO/go/pkg/mod/mvdan.cc/gofumpt@v0.7.0/testdata/script/deprecated-flags.txtar
T
2024-09-19 21:38:24 -04:00

27 lines
428 B
Plaintext

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")
}