segmentio / golines

A golang formatter that fixes long lines
MIT License
903 stars 56 forks source link

Format long lines in struct definitions #130

Open bgimby opened 3 months ago

bgimby commented 3 months ago

Addresses #126

Adds some additional logic to HasAnnotationRecursive to support struct types. Recursively formats struct field elements if they have annotations.

Also adds a couple of debug logs I found useful. Happy to hear any feedback!