-
Notifications
You must be signed in to change notification settings - Fork 18k
No way to get gofmt
’s version
#65933
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
Comments
|
On my system
So |
where it comes from is irrelevant, there's only a single implementation of gofmt, unlike gccgo which is a different implementation. |
If I remember correctly, compiling gcc does produce also |
Go version
go version go1.21.7 linux/amd64 and go version go1.21.7 linux/amd64
Output of
go env
in your module/workspace:go env
from “gccgo”:usage: gofmt [flags] [path ...]
-cpuprofile string
write cpu profile to this file
-d display diffs instead of rewriting files
-e report all errors (not just the first 10 on different lines)
-l list files whose formatting differs from gofmt's
-r string
rewrite rule (e.g., 'a[b:len(a)] -> a[b:]')
-s simplify code
-w write result to (source) file instead of stdout
The text was updated successfully, but these errors were encountered: