Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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).



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

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: