segmentio / golines

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

Not shortening long type definitions #94

Open csm10495 opened 1 year ago

csm10495 commented 1 year ago

Hey folks,

Say i have this line in my .go file:

type MyFunctionType func(a int, b int, c int, d int, e int, f int, g int, h int, i int, j int, k int, l int, m int, n int, o int, p int, q int, r int, s int) int

and then i run something like:

golines <file.go> -w --max-len=80

It doesn't seem like it shortens this line. Is there a way to enable shortening function type definitions? Thanks!