go-dojo
learn go · earn mastery
phase 0 · 0.3-types-zero-values

Static types + zero values

prereqs 0.2-go-toolchain
review intervals 3d 7d 21d 60d drills zero-values-quickfire

The lesson for this task hasn't been written yet. The mastery criteria below is the shortest description of what you'll own when this task is green.

Mastery criteria

- Write the zero value for: int, string, bool, []int, map[string]int, *T, struct, chan — from memory
- Explain when Go "unitialized" differs from JS undefined / Python None
- Use var, :=, and const correctly in a short program that passes go vet

Verify

Run from your go-dojo repo root:

go-dojo verify 0.3-types-zero-values

This runs the task's go test suite in exercises/phase-0/0.3-types-zero-values/, commits the attempt to .go-dojo/attempts/, and updates your mastery.