Learn Mode course · Beta

Learn Go (Golang) Inside Your Editor

TL;DR

Contral's Go course teaches Go 1.22+ the idiomatic way inside VS Code, Cursor and other editors, or the Contral IDE: 34 topics in 5 categories, with errors as values early, small implicit interfaces, table-driven tests, then goroutines, channels and context. Each category ends in an exam, the capstone is a concurrent word counter, and the Basics category is free.

Beta. The Go course works end to end, but its lessons may still change as we improve them. Java is Learn Mode's stable course.

The Go course at a glance

Curriculum
34 topics in 5 categories
Exams and project
5 category exams + a capstone
Free plan
Basics: 8 topics + exam
You need
Go 1.22 or later

Go curriculum: 5 categories

Topics unlock in order. The first topic of each category needs the previous category's exam, and the capstone comes after the last exam. Errors as values come before structs, and interfaces open the Types category.

  1. 1. Basics

    Free

    8 topics, then a category exam

    • Hello, Go: package main & go run
    • Variables, := and zero values
    • Basic types & conversions
    • Constants & iota
    • fmt verbs & Printf
    • if with a short statement, switch
    • for: the only loop
    • Functions & multiple return values

    Basics Exam: Parking Garage: constants and iota, switch, if with early returns, for loops, multiple return values and Printf in one program.

  2. 2. Collections & Errors

    Pro

    5 topics, then a category exam

    • Arrays & slices
    • append, len/cap & slice aliasing
    • Maps & the comma-ok idiom
    • Strings, bytes, runes & strings.Builder
    • Errors as values

    Collections Exam: Gradebook Import: slices, maps, strings and errors as values.

  3. 3. Types & Interfaces

    Pro

    9 topics, then a category exam

    • Structs
    • Pointers
    • Methods & receivers
    • Interfaces (implicit)
    • Type assertions & type switches
    • Stringer, custom error types & errors.As
    • Embedding & composition
    • Closures & first-class functions
    • defer, panic & recover

    Types Exam: Smart Home Hub: structs, pointer receivers, interfaces, embedding, custom errors with errors.As, closures and defer/recover in one program.

  4. 4. Packages, Testing & IO

    Pro

    6 topics, then a category exam

    • Packages, modules & exported names
    • go test & table-driven tests
    • bufio & os: stdin and files
    • io.Reader & io.Writer
    • encoding/json & struct tags
    • Generics

    Packages & IO Exam: Order Import: io.Reader input, bufio, wrapped errors, a generic helper and encoding/json output.

  5. 5. Concurrency

    Pro

    6 topics, then a category exam and the capstone

    • Goroutines & sync.WaitGroup
    • Channels
    • Buffered channels, range & close
    • select & timeouts
    • sync.Mutex & data races
    • context: cancellation & deadlines

    Concurrency Exam: Image Pipeline: a three-stage pipeline with a context-aware generator, a worker pool, a mutex-guarded total and deterministic output.

    Capstone: Concurrent Word Counter: count and rank the words in a text, then count many documents concurrently, built test-first against go test suites, ending in a word counter for a whole folder of files.

How a Go topic works

  1. 1
    Theory

    The concept, explained.

  2. 2
    Observe

    Working example code to read.

  3. 3
    Do

    You write code in a practice file in your workspace.

  4. 4
    Debug

    You fix broken code.

  5. 5
    Explain

    You explain the code in your own words. Defense Mode grades the answer.

  6. 6
    Boss

    A final challenge for the topic.

Your code runs for real. Learn Mode finds Go 1.22+ on your computer, runs your programs with the real go toolchain, and uses go test for the testing topics and the capstone. If the tool is missing or too old, a banner shows How to install and Re-check. You can keep going in the meantime: your code is checked without running it and the result is marked Checked without running.

Defense Mode is part of every topic. It grades your Explain answers, runs a short concept check when you complete a topic, and Defend this on Do, Debug and Boss steps starts a round on your own practice code. See Defense Mode.

Topics unlock in order, and each category ends in an exam. Progress is kept separately for each language, so switching courses never resets anything.

What's free and what's Pro

Free plan

The Basics category: 8 topics, from go run to functions with multiple return values, plus the Parking Garage exam.

Topics you've already started or finished stay open on the Free plan.

Pro, Pro+, Teams and all AppSumo tiers

Every category: Collections & Errors, Types & Interfaces, Packages, Testing & IO and Concurrency, their exams, and the concurrent word counter capstone.

Where you can take the course

Contral extension

Works in VS Code, Cursor, Windsurf, Antigravity, Kilo Code and VSCodium. Run Contral: Start Learning a Language from the Command Palette, or type /learn in the Contral chat.

Get the extension →

Contral IDE

A desktop editor with Contral built in, in public beta. Use the Build/Learn toggle at the top of the Contral panel, or type /learn.

Download Contral IDE →

Working on a Go service with an AI agent? Build Mode, teaching cards and Defense Mode work in any Go project, not just the course.

Start the Go Basics for free

Install the extension or the desktop IDE, pick Go in Learn Mode, and start at topic 1. Upgrade to Pro when you want the rest of the course.

Go course FAQ

What does the Contral Go course cover?

34 topics in five categories: Basics; Collections & Errors; Types & Interfaces; Packages, Testing & IO; and Concurrency. Each category ends in an exam, and the course finishes with a capstone, a concurrent word counter. It covers slices and maps, errors as values, structs, pointers, implicit interfaces, table-driven tests, io.Reader, encoding/json, generics, goroutines, channels, select, sync.Mutex and context.

Does the Go course teach concurrency?

Yes. The last category covers goroutines and sync.WaitGroup, channels, buffered channels, select and timeouts, sync.Mutex and data races, and context cancellation. Its exam is a three-stage pipeline with a worker pool, and the capstone counts words across files concurrently.

Is the Go course free?

The Basics category is free on the Free plan: 8 topics plus the Basics exam. Topics you've already started stay open. Pro, Pro+, Teams and all AppSumo tiers include every category, the other exams and the capstone.

Which Go version do I need?

Go 1.22 or later. Contral looks for the go command automatically. If Go is missing or too old, Learn Mode shows How to install and Re-check, and until then your code is checked without running it and marked Checked without running.

Is the Go course finished?

It's in beta. The course works end to end, but lessons may still change as we improve them. Java is the stable Learn Mode course.

Where can I take the course?

In the Contral extension for VS Code, Cursor, Windsurf, Antigravity, Kilo Code and VSCodium, and in the Contral IDE desktop app. Run Contral: Start Learning a Language, or type /learn, and pick Go.

How does Contral check that I understood a topic?

Defense Mode is part of every topic. It grades your answer on the Explain step, runs a short concept check when you complete the topic, and lets you start a Defend this round on your own practice code.