Phase 1Days 1-5
Go Foundations & Toolchain
Go 1.26, values, control flow, functions, and the compiler mental model
Phase Goal
Install Go 1.26 and reason confidently about small programs before abstractions appear.
Day 1: Why Go, Go 1.26 & Your First Program
Day 2: Variables, Constants & Primitive Types
Day 3: Control Flow Without Hidden Magic
Day 4: Functions, Multiple Returns & defer
Day 5: Mini Project — Trail Ration Planner CLI
Trail Ration Planner CLI
Build a CLI for volunteer trek leaders that converts group size, route days, reserve percentage, and package sizes into a packable ration plan.
- Integer-only gram and package calculations
- Impossible-plan warnings and useful exit messages
- Table-driven tests for boundary and invalid inputs
After this phase, you'll be able to:
- Go’s design goals and compiled-program mental model
- Install, go version, go env, and workspace setup
- package main, imports, func main, and fmt
- go run, go build, gofmt, and compiler errors
- var, short declarations, zero values, and assignment
- Integers, floats, booleans, strings, bytes, and runes
- Constants, iota, numeric conversion, and overflow
- Formatting values with fmt without memorising verbs
You can apply Phase 1 skills in a finished, explainable Go project.