-
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/go: add go fmt -s #35258
Comments
Somewhat related to #21476, since the "simplify" functionality isn't reusable by multiple tools at the moment. |
It's unclear where this ends. Should we add |
Any new extensions of gofmt are likely to be new tools. The Note that gofmt can be pointed at a directory tree. This seems like a likely decline. Leaving open for a week for final comments. |
Those are all good points. If I think it would be simpler for |
gofmt is invoked from tons of scripts; godoc was not. In any event, there doesn't seem to be any change in the argument for not adding more flags to the existing |
gofmt currently has a very useful
-s
flag:It would be great to have this in
go fmt
as well, so I can stop using gofmt altogether.The text was updated successfully, but these errors were encountered: