Hacker News new | ask | show | jobs
by mneil 926 days ago
https://go.dev/learn/

That's all you need. Tour go, and go by example.

Go is far from java. There aren't 10 ways to do things, it's not object oriented, and things like build tools, dependency management, formating, and tests are all baked into the core.

It's a relatively simple language that uses structs and relies heavily on the adapter pattern and composition. You should have no problem learning it quickly. Most go projects will look the same, have similar structure, and all will use the same formatting required by the compiler.

1 comments

As someone who’s written a decent amount of Go, I have seen some reasonable codebases as well as some truly horrific Gang-of-Five-inspired codebases that confused the hell out of me. I think the OP is smart for wanting to find some good examples. Golang is pretty non-prescriptive when it comes to higher-level project architecture, and some people really struggle there.