Learn Go basics: a path through 50 practical lessons
Learn Go through 50 connected lessons with runnable examples, exercises, common mistakes, testing, concurrency and a final HTTP project.
Engineering articles
Practical articles on Go, Kubernetes controllers, self-service platforms, GitOps, and reliable delivery.
Learning series
Learn Go step by step: syntax, collections, functions, errors, testing, HTTP and concurrency, with examples and official documentation.
Explore the seriesLearn Go through 50 connected lessons with runnable examples, exercises, common mistakes, testing, concurrency and a final HTTP project.
Set up Go, verify the toolchain and learn when to use go run, go build and go test in a small local module.
Write your first Go program and understand package main, imports, function declarations and formatted output.
Organize a small Go module with two packages and understand module paths, exported names and go mod tidy.
Use the built-in Go formatter, vet checks and tests to keep a small project consistent and catch common mistakes.
Declare Go variables with var and short declarations, understand zero values and avoid accidental shadowing.
Learn typed and untyped Go constants, use iota for simple enumerations and avoid unstable external numeric values.
Choose Go basic types, understand int and fixed-width integers, and recognize integer division and floating-point limits.
Convert numeric values explicitly and parse strings with strconv.Atoi while checking invalid input and conversion limits.
Use boolean conditions, scoped if initializers and switch cases to make Go decisions readable and explicit.
Write Go loops with counters or conditions and understand break, continue and reliable termination.
Understand fixed-size Go arrays and use this guide to navigate slices, maps, strings, structs and pointers.
Understand how Go slices refer to backing arrays, why subslices share elements and when to make an independent copy.
Use append correctly, understand backing-array reuse and copy a slice before making independent modifications.
Create Go maps, distinguish missing keys from zero values and understand nil maps and unspecified iteration order.
Iterate Go slices, maps and strings with range and learn why changing the iteration value may leave the source unchanged.
Work with Go strings using strings.TrimSpace, Split and Join, while distinguishing byte length from Unicode text length.
Compare byte lengths with rune counts, iterate UTF-8 text and understand why a rune is not always a visible character.
Sort strings and integers with the standard library and sort map keys before generating predictable output.
Define Go structs, use named fields in literals and understand copying, exported fields and nested mutable data.
Use Go pointers to update existing values, understand parameter copying and check nil before dereferencing.
Define Go functions with explicit inputs and results, then follow the guide to errors, methods, interfaces and generics.
Return multiple values from Go functions and use a boolean result to distinguish an empty collection from a valid zero.
Use variadic Go parameters, expand slices with ... and define the behavior of calls with no arguments.
Understand lexical scope and build a small Go closure while recognizing shared captured state and shadowing.
Understand when deferred Go calls run, argument evaluation and why deferring cleanup inside a long loop can retain resources.
Return ordinary Go errors for expected failures and keep invalid results from entering the successful execution path.
Add context to Go errors without losing their identity, and distinguish errors.Is from fragile message comparisons.
Attach methods to named Go types and choose receiver semantics based on mutation, copying and method sets.
Build a small implicitly satisfied Go interface, use pointer method sets correctly and understand the typed-nil trap.
Write a small generic Go function with a comparable constraint and learn when concrete types or interfaces remain clearer.
Explore Go standard-library building blocks through io.Reader and io.Writer, then continue with files, JSON, HTTP and tests.
Use os.ReadFile and os.WriteFile for small local files, propagate errors and isolate practice data in a temporary directory.
Process Go text input line by line, check Scanner.Err and set an explicit token limit for controlled input sizes.
Encode and decode Go structs with encoding/json and separate valid JSON syntax from application-level validation.
Parse and format Go timestamps, use time.Duration with explicit units and distinguish time zones from fixed offsets.
Read Go environment configuration with os.LookupEnv and validate numeric values before using them.
Build a small Go command with typed flags, usage help and semantic validation after parsing.
Serve a local HTTP endpoint in Go, set response metadata and configure basic server timeouts.
Call a local HTTP endpoint with a reusable Go client, enforce a timeout and bound the response body.
Write Go tests with independent expected results, table-driven cases and descriptive subtest failures.
Understand goroutine lifetimes and use this guide to learn synchronization, channels, cancellation and race detection.
Coordinate Go task completion with WaitGroup and understand why waiting does not protect shared mutable state.
Send typed values between Go goroutines and understand when channel operations block and what buffering changes.
Use channel closure to finish a range loop, drain buffered values and avoid sends or repeated closes after completion.
Choose between Go channel operations with select and avoid busy loops and assumptions about ready-case priority.
Pass cancellation through Go function boundaries with context.Context and release derived-context resources with cancel.
Protect concurrent Go counter updates with a mutex and understand lock scope, consistent access and copying restrictions.
Run Go race checks, interpret conflicting access reports and understand why a clean run is limited to executed paths.
Combine Go functions, structs, JSON, validation and httptest in a small local HTTP project with a reproducible test.
Design a Kubernetes CRD and controller that turn developer requests into observable, recoverable platform automation.
Use clear fields, schema validation, defaults, and actionable status to make a custom Kubernetes API easier for developers to use.
Plan served and storage versions, conversion, and deprecation so platform API changes can reach developers without an abrupt client break.
Diagnose Go API latency with a reproducible baseline, focused profiles and an independent benchmark example before changing production code.
A concise overview of Go 1.27 language, JSON, runtime and tooling improvements, plus the fixes in Go 1.27.1 and 1.27.2.
AI can help write code and tests. Learn how independent expectations, boundary cases, and fast Go tests keep that speed grounded in reliable behavior.
A practical starting point for self-service platforms: define desired state, reconcile safely, expose useful status, and test recovery.