Explore core Go concepts with concise, example-driven topics. Each section focuses on the essentials: a short explanation, a minimal code sample, and practical tips so you can learn fast and reference later.
Start from the top if you’re new to Go, or jump directly to a topic you need.
Your first Go program, printing and running.
Literals: booleans, numbers, strings, and composites.
var vs :=, scope, multiple assignment, zero values.
Immutable compile-time values and iota.
Classic, while-like, infinite, and range loops.
Conditionals with optional short initialization.
Basic, tagless, and type switches; fallthrough.
Fixed-size, value-type collections and basics.
Dynamic sequences, append, slicing, capacity.
Key-value hash tables; ok-idiom and patterns.
Syntax, multiple returns, variadic, defer, function values, methods.
Capture, stateful functions, factories, composition.
Base cases, memoization, trees, cautions.
Iterate built-ins (slices, maps, strings, channels) and custom iterators (iter.Seq/Seq2).
Address/deref, pointer receivers, nil safety.
Bytes vs runes, iteration, conversions.
Definition, tags, methods, and embedding for composition.
Implicit implementation, assertions, switches.
Typed constants with iota; Stringers and flags.
Type parameters, constraints, helpers, types.
Creation, wrapping, Is/As, custom types, practices.