- 81lessons
- 4guided projects
- 9module checkpoints
- 3.6hours of video
What you'll learn
- Create, build, format, vet and test Go modules from the command line.
- Return, wrap and inspect errors as values and reserve panic for programmer errors.
- Coordinate goroutines with WaitGroup, channels, select and mutexes, and detect races with the race detector.
- Propagate cancellation and deadlines with context.
- Verify work with table-driven tests, httptest, coverage, benchmarks and fuzzing and state honestly what each check proves.
Skills you'll gain
- Go workspace
- Values
- control flow
- Functions
- errors
- Collections
- structs
- Interfaces
- Goroutines
- channels
- Context
- cancellation
- HTTP
- storage
Tools you'll use
- Go toolchain
- go vet
- net/http
- context
- Race detector
- Go testing, benchmarks and fuzzing
Details to know
- Certificate on completionIssued after your final project is reviewed
- 9 module checkpointsA quiz and a practical task close each module
- Self-pacedStudy any time; your progress is saved
How every lesson works
Each lesson follows the same four steps, so you always know what comes next.
- 01
Watch & Learn
A short animated video explains one idea at a time.
- 02
Guided Practice
Work through an example step by step and check the result.
- 03
Quiz & Challenge
Short questions check the idea has landed before you move on.
- 04
Mini Project
Build something useful from a project brief.
Learn at your own pace
This is a self-paced course. There are no live classes and no fixed timetable.
- Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
- Pick up where you left offYour progress is saved to your account.
- Ask when you're stuckUse Ask Mentor inside the learning platform.
Your path in 5 phases
Each phase ends with something you have built and checked.
- 01
Modules 1 to 3
Ledger command-line tool
Covers Go workspace, Values and control flow and Functions and errors. Write functions with multiple results, reason about pointers and closures, defer cleanup, and return, wrap, inspect and report errors as values.
You build: Ledger command-line tool: A Go module with formatted, vet-clean packages and a workspace check file. Parsing of amounts with strconv and a category switch.
- 02
Modules 4 to 5
Inventory model with interfaces and JSON
Use arrays, slices and maps correctly, model data with structs and methods, compose types by embedding, encode JSON and write generic helpers.
You build: Inventory model with interfaces and JSON: Structs, methods, maps and JSON save/load for items.; A Store interface with an in-memory fake and tests of the service layer..
- 03
Modules 6 to 7
Concurrent batch processor with cancellation
Start goroutines, coordinate them with WaitGroup, channels and select, protect shared state, and build and stop worker pools without leaks.
You build: Concurrent batch processor with cancellation: Worker pool processing items with bounded concurrency and no leaks. Context deadline and fail-fast cancellation of the pool..
- 04
Module 8
Notes HTTP API with persistence
Serve and test JSON over net/http, structure handlers and middleware, persist data safely, shut down gracefully and call other services with deadlines.
You build: Notes HTTP API with persistence: Routes, JSON bodies, error mapping, middleware and httptest tests.
- 05
Module 9
Concurrent Go HTTP service with explicit errors and tests
Write table-driven and helper-based tests, run the race detector, read coverage, benchmark and fuzz small functions, vet, cross-build and document the capstone service.
You build: The final project, demonstrated to a trainer.
Full curriculum
9 modules and 81 lessons, 42 to 71 hours of study
01Go workspace8 lessons, 4 to 6 hours
Lessons
- Reading the toolchain with go version and go env
- Creating a module with go mod init
- Running a program with go run and building it with go build
- Packages, import paths and exported names
- Formatting with gofmt and checking with go vet
- Reading compiler errors: unused variables and imports
- Command-line arguments, exit codes and standard streams
- Using a local module dependency with replace and go mod tidy
After this module you can
- Run go version and go env GOOS GOARCH GOROOT, then state which toolchain, operating system and architecture a build will target.
- Create a folder, run go mod init with a module path, and explain each line of the generated go.mod.
- Add a second local module as a dependency using a replace directive, import it, and run go mod tidy to settle go.mod.
02Values and control flow8 lessons, 4 to 6 hours
Lessons
- Declaring variables with var, := and zero values
- Numeric types, conversion and integer division
- Constants, untyped constants and iota
- Strings, bytes and runes
- Branching with if, else and the init statement
- Repeating with for: three forms, range over integers, break and continue
- Choosing with switch: expression, expressionless and no fallthrough
- Formatting output with fmt verbs and parsing text with strconv
After this module you can
- Declare variables with var and :=, predict the zero value of int, string, bool and float64, and explain where := is not allowed.
- Convert between int, float64 and smaller integer types explicitly, and predict results of integer division, remainder and integer wraparound.
- Print values with %v, %q, %T, %x and widths, and parse an integer from text with strconv.Atoi while handling the returned error.
03Functions and errors8 lessons, 4 to 6 hours
Lessons
- Functions with parameters, multiple results and named results
- Pass by value and pointers
- Function values and closures
- Cleanup with defer
- Errors as values: the error interface, errors.New and fmt.Errorf
- Wrapping and inspecting errors: %w, errors.Is and errors.As
- Panic and recover: when each is appropriate
- Handling errors well: add context once, join several and report at the boundary
After this module you can
- Declare functions that take typed parameters and return more than one value, and use named results with a bare return only where it stays readable.
- Explain that arguments are copied, use & and * to modify a caller's variable through a pointer, and predict aliasing for small examples.
- Add context when crossing a layer, combine several failures with errors.Join, and print one user-facing message at the edge instead of logging at every level.
04Collections and structs9 lessons, 4 to 6 hours
Lessons
- Arrays and slices: length, capacity and the slice header
- Growing and copying slices with append and copy
- Variadic parameters and the slices and sort helpers
- Maps: lookup, comma-ok, delete and iteration order
- Structs: fields, literals, comparison and zero values
- Methods: value and pointer receivers
- Composition with embedded structs
- JSON with struct tags: Marshal and Unmarshal
- Generic functions: type parameters and constraints
After this module you can
- Distinguish a fixed-size array from a slice, read len and cap, and explain that a slice is a window on a backing array.
- Use append and copy, and predict when two slices still share a backing array after append.
- Write a generic function with a type parameter and a constraint, and decide when a plain function or an interface is better.
05Interfaces8 lessons, 4 to 6 hours
Lessons
- Implicit interface satisfaction
- Small interfaces and the standard io.Reader and io.Writer
- Method sets: pointer receivers and interface satisfaction
- Type assertions and type switches
- The nil interface trap
- Embedding interfaces and common standard interfaces: Stringer and sort.Interface
- Interfaces as testing seams
- Choosing between generics and interfaces
After this module you can
- Declare an interface and show that a type satisfies it by having the methods, with no implements keyword.
- Write functions against io.Reader and io.Writer and feed them strings, buffers and files without changing the function.
- Decide whether a given helper should use an interface parameter, a type parameter or a concrete type, and justify the choice.
06Goroutines and channels11 lessons, 5 to 8 hours
Lessons
- Starting goroutines and why main must wait
- sync.WaitGroup and loop variables
- Unbuffered channels as synchronisation
- Buffered channels and capacity
- Closing channels and ranging over them
- Directional channels and channel-returning functions
- select, default and timeouts
- Data races, sync.Mutex and the race detector
- Atomic counters and sync.Once
- Worker pools: fan-out and fan-in
- Goroutine leaks and how to prevent them
After this module you can
- Start a goroutine with the go keyword and explain why a program can exit before it runs.
- Wait for several goroutines with sync.WaitGroup and explain why Go 1.22 loop variables are safe to capture per iteration.
- Spot a goroutine blocked forever on a channel and fix it so every goroutine has a defined exit.
07Context and cancellation7 lessons, 3 to 5 hours
Lessons
- What context.Context carries and how to start one
- Cancelling work with context.WithCancel
- Deadlines and timeouts with WithTimeout and WithDeadline
- Passing context through call chains
- Request-scoped values with WithValue
- Cancelling siblings on the first error with WithCancelCause
- Periodic work with time.Ticker and context
After this module you can
- Name the four methods of context.Context and create a root context with context.Background, explaining when to use it.
- Derive a cancellable context, call cancel, and make a worker loop stop by watching ctx.Done.
- Run work on a time.Ticker, stop it with Stop, and exit the loop when the context is cancelled.
08HTTP and storage11 lessons, 5 to 8 hours
Lessons
- A minimal net/http server: handlers and ServeMux
- Routing with method and path patterns
- JSON request and response bodies with status codes
- Consistent error responses and mapping errors to status codes
- Middleware: logging and panic recovery
- Testing handlers with httptest
- Concurrency-safe in-memory storage with RWMutex
- Persisting state to a JSON file with atomic replacement
- Working with database/sql: queries, rows and parameters
- Calling other services with an http.Client and timeouts
- Graceful shutdown with signal.NotifyContext and Server.Shutdown
After this module you can
- Write a handler with http.HandlerFunc, register it on a ServeMux, and start a server with ListenAndServe on a local port.
- Register routes like GET /items/{id} on a ServeMux and read wildcard segments with r.PathValue.
- Stop an HTTP server cleanly on an interrupt signal, letting in-flight requests finish within a deadline.
09Tests and tooling11 lessons, 5 to 8 hours
Lessons
- Writing and running a first test with go test
- Table-driven tests and subtests with t.Run
- Test helpers, t.Helper, t.TempDir and t.Cleanup
- Testing errors, wrapping and golden output
- Detecting races with go test -race
- Measuring coverage with go test -cover
- Benchmarks with testing.B
- Fuzz testing with FuzzXxx
- go vet, go build flags and cross-compilation
- Documenting packages with doc comments and go doc
- Assembling the checks: a complete verification routine for the capstone
After this module you can
- Write a TestXxx function in a _test.go file, run go test, and report failures with t.Errorf versus t.Fatalf.
- Convert repeated test code into a table of cases and run each as a named subtest.
- Combine formatting, vet, tests with -race, coverage and a build into one reproducible checklist and a short report of what each step proved.
What you'll build
4 guided projects along the way, then a final project.
Ledger command-line tool
after module 3Inventory model with interfaces and JSON
after module 5Concurrent batch processor with cancellation
after module 7Notes HTTP API with persistence
after module 8
Final project
Concurrent Go HTTP service with explicit errors and tests. Options: Concurrent URL health checker service; Order intake service with background processor; Metrics collector with query API.
What you submit
Submit source code and a README with setup and run instructions Functional checks: table-driven handler tests and at least one concurrency test passing under go test -race on the learner's machine (transcript required).
How it's reviewed
Trainer review against a weighted rubric: Correctness of behaviour on normal, boundary and error requests Concurrency safety evidenced by the race detector and design explanation Error handling and status mapping consistency.
Where you'll use it
- Write a JSON HTTP handler that times out slow downstream calls with a context deadline.
- Process a batch with a worker pool and stop it cleanly on the first error.
Roles that use these skills
- Go developer
- Backend developer
- Platform engineer
Earn the certificate by building, not watching
- Complete the lessons and pass each module checkpoint.
- Build your final project and demonstrate it.
- OUTLEARN reviews your project and issues your certificate. It is not issued automatically.
Frequently asked questions
What should I know before starting?
The course expects Programming Problem Solving or an accepted equivalent. Prerequisite course Programming Problem Solving. A short diagnostic check is described in the entry requirements.
What do I build for the final project?
You choose one of 3 options: Concurrent URL health checker service; Order intake service with background processor; Metrics collector with query API. It is reviewed by a trainer in a live demonstration.
When do I get a certificate?
Only after you build and demonstrate your live project. OUTLEARN staff issue certificates; nothing is issued automatically.
Be first in when Go Programming opens
Email us and we will tell you as soon as enrolment opens.
Notify me when it opens
