learngo

Go, graded by Go

Learn Go by making the tests pass.

All three books are free to read, start to finish. What you pay for is grading — the real Go toolchain running your code in a locked-down sandbox, all the way to a multi-package service you built yourself.

Reading is always free. Week one's exercises are graded free too — no card. After that it is one payment, not a subscription.

sandboxdocker--network=noneread-only1 CPU
$ go test ./...
ok submission 0.004s
3
books
115
lessons
110
exercises
10
graded free

What actually happens when you use it

Your code runs, for real

Every exercise is compiled and tested by the actual Go toolchain inside a container with no network, a read-only filesystem, and one CPU. Not a quiz about Go. Not a video of someone else writing it.

Solutions are earned

The first hint is free. The rest unlock once you have tried, and the solution only after you pass — or after three real attempts. You cannot read your way past an exercise, which is the entire point.

Idiomatic, not just green

Passing submissions still come back with gofmt and go vet notes. Working Go that no reviewer would accept is a habit worth breaking early, so it never fails you for style — it just tells you.

Eight weeks, in order

Self-paced, and every lesson below is free to read. The badge marks where grading is free too.

  1. 01Setup, syntax, and control flowGrading free~6h
  2. 02Slices, maps, strings, and structs~7h
  3. 03Interfaces, errors, and generics~7h
  4. 04Testing, the standard library, and project layout~9h
  5. 05Concurrency~9h
  6. 06Building a web service~8h
  7. 07Persistence~8h
  8. 08Production and the capstone~6h

Reading is free. Grading is what you pay for.

Every lesson in all three books stays readable without an account, forever. Nothing is paywalled behind a teaser.

What costs money is running your code, because that is what costs us something: each submission is a real container with its own CPU and memory. Week one's exercises are graded free so you can try the actual thing, and one payment covers the other 100 for twelve months.

It does not auto-renew. When the year is up nothing charges you, and every lesson you have read stays exactly as readable as it was — you only lose grading.

Unlimited grading

$99once, for 12 months
  • Grading on all 110 exercises, not just week one
  • Every submission run by the real Go toolchain
  • gofmt and go vet notes on work that already passes
  • The multi-package capstone, graded end to end
Start week one — free

Start by reading — upgrade whenever week one runs out.

Who this is for

A good fit if you

  • already write code in some other language
  • want Go's idioms, not a tour of its syntax
  • would rather be told why than told what to type

Not yet, if you

  • are writing your first program — start somewhere gentler
  • want deployment, Docker, or CI — this teaches the language and the service, not the pipeline around them

Read it all free. Start with a failing test.

Create your account