go/printer: consider permitting one-line "enum" const decls #13403
Labels
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
A declaration of the form:
gets formatted as:
The former is close to what in other languages might be achieved with an "enum" declaration. If there's several such simple const decls, the latter form uses undue amount of space w/o much readability benefit.
Consider recognizing this special case and not introduce line-breaks if there were none in the original source.
The text was updated successfully, but these errors were encountered: