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

> By enforcing a single, standardized format via the built-in gofmt tool

I'd read about this many times before I started with Go so I was particularly disappointed to learn that it was a lie. The most important task of a code formatter is to break long lines; it doesn't do it. It doesn't even have an option to do it!



Because long lines aren't against the style guide for some reason.


The promise as I understood it was that it would map Go programs down to a unique format, as is done in Python or Rust. It's not required that the long lines violate style guides; we just want a unique blessed format.




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

Search: