We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As shown in playground https://play.golang.org/p/QpLaytT2yia, the following code has strange indent, that depends on the order of the elements.
package main var a = []string{ "xxxxxxxxxxxxxxxxxxxxx", // comment "xxxxx", // comment "x", // comment } var b = []string{ "xxxxxxxxxxxxxxxxxxxxx", // comment "x", // comment "xxxxx", // comment } func main() {}
The text was updated successfully, but these errors were encountered:
That's intentional. See previous bugs on this topic. This is a frequent duplicate. The main duplicate is #10392.
Sorry, something went wrong.
First rule of gofmt: don't worry about gofmt's choices.
I wonder if this warrants a gofmt FAQ.
If we did, it should be of the form:
Q: gofmt did something unexpected! A: Don't worry about it. Keep writing code.
:)
No branches or pull requests
As shown in playground https://play.golang.org/p/QpLaytT2yia, the following code has strange indent, that depends on the order of the elements.
The text was updated successfully, but these errors were encountered: