Skip to Content
Skip to content
PROGRAMMING

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.

Go
Install Go, Check Your Path, and Initialize a Module Level: Beginner

Verify your Go installation with go version and go env, initialize a module with go mod init, and fix go.mod not found errors.

Go
Strings, Bytes, and Runes in Go: Why len() Counts Bytes Level: Beginner

See why len() counts UTF-8 bytes instead of characters, iterate safely over runes with range, and slice UTF-8 text without splitting multi-byte characters.