Hacker News new | ask | show | jobs
by enneff 4989 days ago
Google had four canonical languages: C++, Go, Java, and Python. They are defined internally in an engineering handbook. There is no such similar style guide for Go, as a a lot of what the existing guides say is "don't use x." If that were needed for Go we would have failed.
2 comments

Fare enough.

> If that were needed for Go we would have failed.

Why? Even with Go there are many ways to do certain things.

I can imagine given the language's youth not everyone would write the code the best way.

I know the few times I did some Go coding, I was most likely not good enough to the canonical style.

I imagine the Go style guide would also largely boil down to 'use `go fmt`'.