Hacker News new | past | comments | ask | show | jobs | submit login

Another great thing:

gofmt - Go has no style guide, just this tool!

Committed code ends up looking cleaner and you don't have to adapt to other's wacky standards. No more tabs vs spaces arguments or where to place that brace... brilliant.

http://golang.org/doc/effective_go.html#formatting




It does have a style guide, it's just that gofmt will automatically make your code conform to that style guide :)

The Go style is close enough to my normal C style that I end up mostly conforming anyway, but gofmt is great for making code look a bit prettier.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: