Sefism early access is open for X and Instagram followers and university students.Get early access
Guide · OtherFree

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.

Format

Guide

Topic

Other

Provider

Mark McGranaghan and Eli Bendersky

Time needed

Ongoing reference

Level

Beginner

Access

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.

gobackend

Ready to start?

Opens on Mark McGranaghan and Eli Bendersky in a new tab.

Open resource
Link broken or out of date?

Report a problem

With "Go by Example". Only Tauseef reads this.

Work with me

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.