3 ms·
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 standa
by flashmob 14y ago
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 http://golang.org/doc/effective_go.html#formatting
- jff 14y agoIt 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.