02

Remember and Decide

Store information in variables, work with numbers and strings, and teach your program to make decisions with if and else.

3 lessons
  1. 4 Variables and Types Give your data a name with var and := 8 min
  2. 5 Numbers and Strings Doing math and handling text 8 min
  3. 6 Making Decisions with if and else Programs that choose their own path 8 min
03

Repeat and Reuse

Master Go's one loop, package steps into reusable functions with multiple returns, and keep lists of values in slices.

3 lessons
  1. 7 The One Loop: for Every way to repeat yourself in Go 9 min
  2. 8 Functions and Multiple Returns Name a job once, use it everywhere 10 min
  3. 9 Slices: Lists of Values Keep many values together in order 9 min
04

Real Data, Real Programs

Look things up instantly with maps, model real things with structs, and peek at a complete tiny web server written in Go.

3 lessons
  1. 10 Maps: Look It Up Store pairs of keys and values 9 min
  2. 11 Structs: Model Real Things Bundle related values into one type 10 min
  3. 12 A Peek at a Tiny Web Server The famous few lines that serve the web 8 min