cmd/gofmt: formatting change between go1.13.8 and go1.14, unknown if intentional or not #37639
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
After upgrading to go 1.14, we noticed that
go fmt
was reformatting some of our files that previously had not changed under go 1.13 and earlier versions.I didn't see anything related to fmt in the release notes, is this behavior expected?
Below is a sample file that shows the issue
Run
go fmt
on the following fileWhat did you expect to see?
No change in formatting
What did you see instead?
The formatting was was reformatted to
The text was updated successfully, but these errors were encountered: