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
cmd/gofmt: Minor spacing difference in cmd/gofmt formatting between 1.5 and 1.6. #15294
As a preface, I am completely okay if this issue is marked as "Unfortunate", I don't think it negatively affects me or anyone, and the chances of other people running into it are very low (and if they do, working around it is trivial). But given how unexpected and rare the event is (a difference in cmd/gofmt behavior between point releases of Go), it may be interesting/useful to investigate the root cause and ensure such regressions don't happen in future releases. I'm reporting it for that reason only.
So far, I have not spent any time looking into why the behavior changed (again, because I didn't think it was worth the time, and there are higher priority Go issues for me to get to first).
1. What version of Go are you using (
Facing the same issue.
My gofmt on localbox format the code in this way
But the gofmt in Travis gave me this result