You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What does 'go version' print?
1.2, and using version from playground.
What steps reproduce the problem?
http://play.golang.org/p/tXDIgmPIky
What happened?
{
Field: value,
LongerField: value,
EspeciallyEvenLongerField: value,
Field: value,
},
What should have happened instead?
{
Field: value,
LongerField: value,
EspeciallyEvenLongerField: value,
Field: value,
},
Please provide any additional information below.
There appears to be logic in gofmt which avoids aligning long field values, but this is
inconsistent when a field is short after a long one. See play link for other examples.
The text was updated successfully, but these errors were encountered:
This is not a bug. The code in gofmt aligns types of fields that belong to a "group" of
fields. A group of fields is terminated if the length ratio between the previous and the
next field declaration goes over a certain threshold.
by waters@google.com:
The text was updated successfully, but these errors were encountered: