Closed apprehensions closed 10 months ago
Also, shouldn't the struct members be organized? organizing them may save memory.
it will remain as is. Is this intentional?
This is a formatting choice by gofmt. gofumpt will never fight gofmt on its formatting choices, per the README. I believe gofmt "breaks" vertical alignment in this case on purpose.
Also, shouldn't the struct members be organized? organizing them may save memory.
gofumpt is a formatting tool, that has nothing to do with formatting. Plus, reordering struct fields can be a breaking change and should never be done automatically.
This Go snippet (couldn't think of a better name):
works fine, as gofumpt formats it as so:
however if the struct's order is like so:
it will remain as is. Is this intentional? or because of the passthrough struct not having a name inside the struct, gofumpt cannot calculate the formatting width?