Hacker News new | ask | show | jobs
by psankar 843 days ago
Prettier was inspired by gofmt.

But I really wish gofmt gets inspired by prettier and automatically breaks long (80+ columns) lines into smaller lines (For example, move parameters of a long function each into their row).

1 comments

It is not in the stdlib, but you can use golines for that.

https://pkg.go.dev/github.com/wrype/golines