Go Fundamentals

From Hello, world to slices, structs, and if err != nil.

Learn Go from scratch: packages, types, control flow, functions, slices, maps, structs, and error handling. Covers zero values, := quirks, and why Go has one loop. Every lesson runs in a real Go sandbox.

Beginner9 lessons~6h
0/9 complete

Course content

Getting Started

  • Hello, Go (and package main)10 min

Core Syntax

  • Variables, Types & Zero Values15 min
  • if, for, and switch (The Only Loop)15 min

Functions

  • Functions & Multiple Returns15 min

Collections

  • Slices: len, cap, append & Shared Backing18 min
  • Maps, Structs & JSON Tags Preview18 min

Robustness

  • Errors as Values (if err != nil)15 min

Go Oddities

  • nil Slices, nil Maps & := Scope15 min

Project

  • Mini Project: Word Counter22 min