GoGoPrimer

Learn Go, step by step.

Learn Go from scratch

A clear, progressive path through the Go language: syntax, concepts, and good practices, explained simply.

Start module 1

Your progress

0/9

You haven't started yet. Jump into the first lesson!

Course modules

1

Getting started

0/3

Understand what Go is, install it, and write your first program.

3 lessonsStart
2

Basic syntax

0/3

Variables, types, constants, and text formatting.

3 lessonsStart
3

Control flow

0/3

if, the for loop, and switch: everything you need to direct execution.

3 lessonsStart
4

Functions

Multiple returns, named results, variadic parameters, and closures.

Coming soon
5

Arrays, slices, and maps

The data structures at the heart of most Go programs.

Coming soon
6

Structs and methods

Defining your own data types and attaching behavior to them.

Coming soon
7

Interfaces

Polymorphism the Go way: implicit, minimal, and very powerful.

Coming soon
8

Error handling

Why Go has no exceptions, and how to handle errors cleanly.

Coming soon
9

Pointers

Understanding pass-by-value and pass-by-reference without black magic.

Coming soon
10

Packages and modules

Organizing a Go project and managing its dependencies.

Coming soon
11

Goroutines and channels

Go's signature feature: concurrency as a native capability.

Coming soon
12

Testing

The built-in testing package, no external framework required.

Coming soon
13

Idiomatic Go

The conventions and instincts that set apart Go code that "looks right".

Coming soon