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
Understand Go Pointers (& and *) Without Guessing Level: Beginner

Learn how &x and *p work in Go, why value parameters copy data, and how to guard against nil pointer dereferences. After this, pointer bugs stop being guesswork.

Go
Write Generic Functions in Go With comparable, cmp, slices, and maps Level: Intermediate

Use type parameters with comparable and cmp.Ordered alongside Go's standard slices and maps packages. After this, you eliminate duplicate helpers without losing type safety.

Go
Read Struct Tags With reflect in Go (and Know When to Use Codegen) Level: Advanced

Inspect struct fields and tags at runtime with reflect.TypeOf, and decide when generics or go generate are a better fit.