Go study
Offline — showing the cached copy.
Home / Go / 24. Feature diff matrix

24. Feature diff matrix

One-liner. One grid for "which version gave me this", so you stop guessing.

Memorize

Feature1.181.191.201.211.221.231.24
Generics, any✓
Native fuzzing✓
Workspaces (go.work)✓
GOMEMLIMIT✓
Typed atomics (atomic.Int64)✓
PGOpreviewdefaultimproved
errors.Join, multiple %w✓
unsafe.String/SliceData✓
min/max/clear builtins✓
log/slog✓
slices/maps/cmp✓
Loop var per-iteration✓
range over int✓
math/rand/v2✓
Range-over-func / iter✓
unique interning✓
Swiss-table maps✓
weak pointers✓
os.Root✓
tool directive✓
testing/synctest✓
runtime.AddCleanup✓
Generic type aliasespreview
  • "Preview" means behind GOEXPERIMENT or opt-in; "default" means it ships on.
  • Anything not in the grid is a library addition, not a language/runtime change.
WHERE EACH RELEASE ADDS WEIGHT 1.18 syntax 1.19 memory 1.20 tooling 1.21 stdlib 1.22 semantics 1.23 iteration 1.24 runtime
Where each release adds weight

Trap. Assuming a feature you use is old because it feels natural — generics are 1.18+, slices is 1.21+. Do this. Check the go directive before using new stdlib in a shared module.

Check

Which release introduced slices and maps in the standard library?