Hacker News new | ask | show | jobs
by stevewilhelm 2308 days ago
Any suggestions of open source Go projects/services that exemplify the Zen of Go?

Bonus points if they are using Docker / Kubernetes for deployment and hosting.

3 comments

HashiCorp stack is pretty good for this.
I'm told that Sanjay Ghemawat's Go code is beautiful (I'm not a Go expert though): https://github.com/ghemawat/stream/

More about him: https://www.newyorker.com/magazine/2018/12/10/the-friendship...

The standard library
I get told all the time about how the standard library isn't a great example of go code, because of the backwards compat they have to do.
stdlib was once an exemplar of good, idiomatic Go code, but a lot of the idioms it uses haven't withstood the test of time, and it's less and less appropriate as an example.
This is true, but it's still worth poking around for pre-existing solutions to problems. My editor will jump to stdlib definitions so I've learned a lot just diving into various stdlib packages (I remember the JSON parser being a good one).