Skip to content

Go / Advanced · Free public pilot

Advanced Go in 7 Days

Build an order ledger that bounds its input, commits orders all or nothing, recognizes retries and parses on a cancellable worker pool.

Start your first lesson →

Build on Go intermediate.

Come in comfortable with methods, pointer receivers, slices and maps, small interfaces, wrapped errors and tests that inject readers and writers. Allow about 100–120 minutes per day for reading and practice. Split a day across sessions if you need more time.

Run Go 1.27 in your browser with code-playpad’s experimental compiler. The first Run downloads about 21 MB and caches the toolchain. Goroutines run on a single thread in the browser, and every program prints the same output as with local Go. Enter console input before pressing Run.

Each day ends with independent practice. Day 7 includes a multi-file project, an optional Go project download that runs its tests under the race detector, and a review to try after a few days. Progress is saved in this browser.

Need a refresher? Review Go Intermediate →

Day 1 · About 102 minutes

Generic Code and Function Values

Pass behavior as values and write type-safe generic functions and types.

  1. Pass Behavior as a Value 24 min · Read, predict and practice
  2. Write Generic Functions 24 min · Read, predict and practice
  3. Define Constraints and Generic Types 24 min · Read, predict and practice
  4. Checkpoint: Group Records by Key 30 min · Independent checkpoint

Day 2 · About 110 minutes

Errors as Data

Carry details in error types, report every problem at once and clean up with defer.

  1. Carry Details in an Error Type 32 min · Read, predict and practice
  2. Report Every Problem at Once 24 min · Read, predict and practice
  3. Clean Up with defer 24 min · Read, predict and practice
  4. Checkpoint: Explain a Rejected Order 30 min · Independent checkpoint

Day 3 · About 102 minutes

Streams and Iterators

Write range-over-func iterators and bound input exactly before parsing it.

  1. Write an Iterator 24 min · Read, predict and practice
  2. Use the Standard Iterators 24 min · Read, predict and practice
  3. Bound Input Before You Parse 24 min · Read, predict and practice
  4. Checkpoint: Parse a Stream of Records 30 min · Independent checkpoint

Day 4 · About 102 minutes

Atomic Changes and Retries

Check limits safely, commit batches all or nothing and recognize retries.

  1. Check Arithmetic Before It Overflows 24 min · Read, predict and practice
  2. Stage a Batch, Then Commit 24 min · Read, predict and practice
  3. Recognize a Retry 24 min · Read, predict and practice
  4. Checkpoint: Apply a Batch Exactly Once 30 min · Independent checkpoint

Day 5 · About 102 minutes

Concurrency with Determinism

Run work on goroutines, keep results in input order and honor cancellation.

  1. Run Work on Goroutines 24 min · Read, predict and practice
  2. Keep Results in Input Order 24 min · Read, predict and practice
  3. Cancel Work with context 24 min · Read, predict and practice
  4. Checkpoint: Validate in Parallel, Report in Order 30 min · Independent checkpoint

Day 6 · About 112 minutes

Test the Guarantees

Check canonical snapshots, invariants over random input and injected failures.

  1. Compare Canonical Snapshots 24 min · Read, predict and practice
  2. Check an Invariant on Random Input 34 min · Read, predict and practice
  3. Inject Failures and Mutations 24 min · Read, predict and practice
  4. Checkpoint: Test a Register Three Ways 30 min · Independent checkpoint

Day 7 · About 152 minutes

Ship the Order Ledger

Run, test and extend an order ledger, then build seat holds independently.

  1. Run the Order Ledger 20 min · Read, predict and practice
  2. Trace a Command Through the Files 20 min · Read, predict and practice
  3. Run the Ledger Contract Checks 20 min · Read, predict and practice
  4. Report Low Stock and Download the Project 22 min · Read, predict and practice
  5. On Your Own: Seat Holds 70 min · Independent checkpoint
  6. Come Back Later: Iterators and Typed Errors 50 min · Extra delayed review