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
gofmt or the go command does not know which files are generated. It is up to the user (or the project) to decide which file should be formatted, which should not. Also, generated files usually are already well formatted.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Unknown
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I ran
go fmt ./...
and it reformatted some comment spacing in my code generated.pb.go
fileWhat did you expect to see?
The command should not format code generated files.
The text was updated successfully, but these errors were encountered: