Go Nitpicks & Craft

nil interfaces, range loops, defer traps, JSON tags, and production idioms.

The Go proverbs skip the painful parts. Master nil interface semantics, range variable capture, defer in loops, sync.Pool, encoding/json omitempty traps, and embed patterns.

Learn with Ada, your AI coding mentor — ask questions or tap I’m stuck in any lesson for a nudge without spoilers.

Practitioner6 lessons~4h
First lesson free

Try lesson 1 without an account. Sign in to unlock the remaining 5 lessons and save progress.

Course content

Sharp Edges

  • The Typed Nil Interface TrapFree15 min
  • 🔒Range Loop Variables (Pre-1.22 vs 1.22+)14 min
  • 🔒defer in Loops — Stack Growth14 min

Performance

  • 🔒sync.Pool — When It Helps (and When It Hurts)16 min

Serialization

  • 🔒encoding/json omitempty Surprises15 min

Tooling

  • 🔒//go:embed — Ship Assets in Binaries16 min