Hacker News new | ask | show | jobs
by cgislason 4531 days ago
How would you recommend becoming familiar with idiomatic Go?

I've read various articles including (but not limited to) tutorials, made a point of exploring a few open source projects and I've written a few thousand lines of Go. I enjoy writing Go, but I have a hard time so far figuring out if what I write is idiomatic.

2 comments

> How would you recommend becoming familiar with idiomatic Go?

By reading the source code of the standard library. It's directly linked from the API documentation.

Effective Go: http://golang.org/doc/effective_go.html

Short of that, read the source of some standard library packages. They are quite approachable.