Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/gofmt: comments under case statements indented inconsistently #20681
go version go1.8.1.typealias linux/amd64
gofmt indents comments under case statements differently, depending on whether or not there is a subsequent default case.
Press "Format" and notice that "// CommentBar" is properly indented, whereas "// CommentFoo" is missing an indent.
That's because it's not obvious whether
Leaving open for future consideration.
Thanks for the explanation, that makes sense.