|
|
|
|
|
by pigeonhole123
938 days ago
|
|
Prettier is very opinionated about line length which gofmt isn't. That's the only complaint I have and it's bad enough I just refuse to use it. Add one character to a line and enjoy a ten-line diff. Edit: See a contrived example of something gofmt doesn't touch (the behavior I want): https://go.dev/play/p/cKMKnFwT8tq |
|
Also, this means that there is more than one way to format the code, which stands pretty weird given the philosophy of Go.