Go by Example
Annotated example programs for most things you do in Go, from slices and maps to goroutines, worker pools, JSON, HTTP servers and testing, each shown with its output. It works well as a companion to A Tour of Go and as a lookup when you remember what you want but not the idiomatic way to write it. Examples are intentionally small, so read the official docs for edge cases.
Guide
Other
Mark McGranaghan and Eli Bendersky
Ongoing reference
Beginner
Free
Annotated example programs for most things you do in Go, from slices and maps to goroutines, worker pools, JSON, HTTP servers and testing, each shown with its output. It works well as a companion to A Tour of Go and as a lookup when you remember what you want but not the idiomatic way to write it. Examples are intentionally small, so read the official docs for edge cases.
Ready to start?
Opens on Mark McGranaghan and Eli Bendersky in a new tab.
Stuck on something specific?
Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.
Follow along
New writing, resources and project ideas land here first.