-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proposal: cmd/gofmt: deprecate 'gofmt' in favor of 'go fmt' #33263
Comments
/cc @bcmills |
At least in the abstract, I like the idea of merging the two or explicitly recommending one. It would, to some extent, parallel how |
I don't think this is a good idea; see @rsc's comment in a related issue. I guess we could teach It's also worth noting that |
Duplicate of #35258. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
Currently is
gofmt
andgo fmt
are both used in the community for formatting.go fmt
runsgofmt -l -w
on packages. The args forgofmt
are system paths, forgo fmt
- packages.Can't we just use
go fmt
with the full set ofgofmt
args and depricate gofmt?At least for a newbies it's a little bit confusing
gofmt
vsgo fmt
- why there are 2 things that does appr. the same thing?What did you see instead?
The text was updated successfully, but these errors were encountered: