Go (Golang) Essentials
Write fast, statically typed backend services with Go: slices, structs, interfaces, explicit errors, goroutines, channels, and net/http APIs.
What you'll build & master
- ✓ Build clean, idiomatic Go packages with strong static typing
- ✓ Model data with structs, methods, and implicit interfaces
- ✓ Write concurrent pipelines using goroutines, channels, and sync.WaitGroup
- ✓ Ship a JSON REST API with standard-library net/http and context cancellation
Course Syllabus
Core Syntax
- 18 min
Go Basics, Packages & Zero Values
Learn Go package structure, short variable declarations, strict static typing, and zero values.
- 28 min
Control Flow, Loops & Multiple Returns
Use Go's single loop keyword `for`, `if` with init statements, `switch` without fallthrough, and multiple return values.
- 39 min
Slices, Capacity & Maps
Understand how Go slices wrap backing arrays, grow with append, and how maps store key-value pairs safely.
Types & Interfaces
- 19 min
Structs, Value vs Pointer Receivers
Model domain entities with structs and choose between value receivers and pointer receivers on methods.
- 210 min
Implicit Interfaces & Struct Embedding
Decouple components using Go's small implicit interfaces and compose behavior via struct embedding.
- 39 min
Explicit Error Handling, Wrapping & Defer
Handle errors as explicit return values, wrap context with fmt.Errorf %w, inspect with errors.Is, and clean up with defer.
Concurrency
- 110 min
Goroutines & sync.WaitGroup
Launch lightweight concurrent goroutines and coordinate their completion safely using sync.WaitGroup.
- 210 min
Channels, Buffering & select
Communicate safely between goroutines using typed channels, buffered channels, and non-blocking select statements.
- 39 min
Context Propagation & Cancellation
Cancel long-running work and enforce request deadlines cleanly across call trees using the context package.
Production Go
- 110 min
JSON Encoding & net/http REST Servers
Build fast, dependency-free HTTP servers with Go's standard net/http router and encoding/json struct tags.
- 29 min
Table-Driven Tests & Benchmarks
Write idiomatic table-driven unit tests with testing.T and measure allocations with testing.B benchmarks.
- 310 min
Capstone: Concurrent URL Checker CLI
Combine worker pools, channels, context timeouts, and structured JSON output into a production-ready Go tool.