Skip to content
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

gofmt should respect "./..." notation, just like other standard Go tools #41677

Closed
mcandre opened this issue Sep 28, 2020 · 2 comments
Closed

Comments

@mcandre
Copy link

mcandre commented Sep 28, 2020

Getting gofmt to properly recurse over all Go project files is a hassle. Please have gofmt interpret ./... path notation to expand to all project Go source files, just like other standard Go tools behave.

@slrz
Copy link

slrz commented Sep 28, 2020

go fmt ./... will invoke the gofmt program on all files matched by the pattern.

@mvdan
Copy link
Member

mvdan commented Sep 28, 2020

What @slrz said, you want go fmt.

@mvdan mvdan closed this as completed Sep 28, 2020
@golang golang locked and limited conversation to collaborators Sep 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants