Go Tutorials
Standalone Go tutorials covering concrete runtime traps and service patterns: slice backing-array aliasing, nil-map panics, typed-nil interfaces, context.Context timeouts, worker pools, go test -race data races, pprof allocations, and static binaries under 10 MB.
Each guide pairs a small runnable Go program with its exact compiler, test, or benchmark output so you can verify the behavior locally.
Cut per-request allocations with sync.Pool without leaking stale bytes across requests or holding onto oversized buffers forever.
Capture CPU and heap profiles from a Go test or net/http/pprof endpoint, read flat vs cum in go tool pprof -top, and verify that a fix actually reduced allocations.
Inspect heap escapes with go build -gcflags=-m and set GOGC and GOMEMLIMIT to prevent container OOM kills. After this, memory usage and GC behavior are predictable in production.
Capture -mutexprofile and -trace outputs from Go benchmarks to pinpoint lock contention and scheduler stalls. After this, you spot hidden blocking waits that CPU profiles miss.