You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go test ./... ignores directories prefixed with _. This is convenient and seems like a
reasonable rule of thumb.
gofmt -w .
does *not* honor this "rule"
With the ascendance of Godeps there are now Godeps/_workspace folders vendoring
dependencies all over the place. Having gofmt -w . rewrite my dependencies is painful.
Any change the "ignore _" rule could be ported over to gofmt sometime soon?
Would be happy to work on a pull request for this.
The text was updated successfully, but these errors were encountered:
gofmt is not part of the go tool and the desired behavior of the go tool is nowhere
specified to apply to gofmt. Use instead, for example,
$ go fmt ./...
It works as expected, ie. it ignores directories starting with the underscore character.
#WAI
This is a feature request for gofmt, not go fmt.
This is not urgent since it's easy to apply gofmt selectively to a list of files
(possibly created using Unix find and friends).
by onsi@pivotallabs.com:
The text was updated successfully, but these errors were encountered: