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.

Learn with Ada, your AI coding mentor — ask questions or tap I’m stuck in any lesson for a nudge without spoilers.

Beginner9 lessons~6h
First lesson free

Try lesson 1 without an account. Sign in to unlock the remaining 8 lessons and save progress.

Course content

Getting Started

  • Hello, Go (and package main)Free10 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