Closed carlca closed 6 years ago
This would be a decision for gofmt. However, it’s unlikely they would change it or make it configurable since it would result in a lot of unexpected diffs.
I take your point. After all, this is a tool that is intended to cut down the variation in formatting, not result in a lot of unexpected diffs!
I don't know if I should be addressing this issue to you or @bradfitz or someone else. Anyhow:
When I save my go code, my structs are being aligned like this:
I would prefer the automatic alignment of the
string bson
info to carry on over the comments, like so:Is there any way of achieving this with
goreturns
,goimports
orgofmt
? Thanks!