segmentio / golines

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

Wrap math expressions #104

Open nachograffione opened 1 year ago

nachograffione commented 1 year ago

Math expressions like

resultOfThisLongExpression := veryVeryLongVariable + anotherVeryLongVariable

I think they should be wrapped like

resultOfThisLongExpression := veryVeryLongVariable + 
                            anotherVeryLongVariable

IMHO Dart wrapping system is a good reference for this issue.