karn
stack
Search
K
All courses
Go Foundations
33 lessons · ~14 hours
0/33 done
13h 48m left
Module 1 · 33 min
Getting to hello
0/3
Why Go, why now: a 2007 language built for the AI era
Free
The toolchain tour: installing Go with mise, run, build, fmt, vet
Free
Your first program: compile it, run it, see what happened
Free
Module quiz
(Locked)
Module 2 · 137 min
The building blocks
0/7
Values, variables, constants, and zero values
(Locked)
Control flow: for is the only loop you get
(Locked)
Functions: multiple returns, closures, and defer
(Locked)
Pointers without fear
(Locked)
Strings, runes, bytes, and formatted output
(Locked)
Slices, and how they really work
(Locked)
Maps, structs, and modeling your first feed item
(Locked)
Module quiz
(Locked)
Module 3 · 110 min
Talking to the world
0/4
Errors are values: returning, wrapping, sentinel vs typed
(Locked)
Files and cleanup: defer in the real world
(Locked)
io.Reader and io.Writer: the composable core
(Locked)
Calling a REST API: net/http and decoding JSON
(Locked)
Module quiz
(Locked)
Module 4 · 128 min
Modeling with types
0/5
Methods, and value vs pointer receivers
(Locked)
Interfaces: behavior over inheritance
(Locked)
Embedding and composition: how Go reuses code
(Locked)
any, type assertions, and type switches
(Locked)
Generics: type parameters, constraints, and iterators
(Locked)
Module quiz
(Locked)
Module 5 · 199 min
Doing many things at once
0/6
Goroutines and the scheduler
(Locked)
Channels: send, receive, range, close
(Locked)
Fan-out and fan-in: fetch every source at once
Free
Select, timeouts, and cancellation with context
(Locked)
Sharing state safely: the sync package
(Locked)
Putting it together: the concurrent aggregator
(Locked)
Module quiz
(Locked)
Module 6 · 221 min
Shipping it
0/8
Panic and recover: at the boundary, never as control flow
(Locked)
Table-driven tests and benchmarks
(Locked)
Fuzzing the feed parser
(Locked)
go mod deep dive: sub-packages and project structure
(Locked)
Writing the HTTP server
(Locked)
Testing HTTP handlers
(Locked)
Logging, metrics, and configuration
(Locked)
Where to go next
(Locked)
Module quiz
(Locked)
Certificate
Unlock every course
See plans
Support
Feedback
System status
55a2c5d
Toggle Sidebar
Courses
Go Foundations
Select, timeouts, and cancellation with context
Jump to…
K
D
Sign in