Gist of Go: Concurrency

saikatsg1 pts0 comments

Gist of Go: Concurrency

Anton Zhiyanov<br>projects<br>books<br>blog<br>about

Many Go concurrency books and tutorials are like: here's goroutine, here's channel, here's select — use them as you like. Others just throw concurrent patterns at you without really explaining them.<br>This is not very helpful: the most important thing in concurrent programming is not pure knowledge, but the understanding and ability to apply concurrency primitives.<br>That's why I've created an interactive book that teaches Go concurrency from the ground up through practical exercises. These exercises are simple enough to be solved with a single page of code yet are closely aligned with real-world scenarios.<br>Audience and approach •<br>Contents •<br>About the author •<br>Book details<br>Audience and approach<br>The book is intended for programmers who are already familiar with Go, from language basics to interfaces and errors. You don't need any prior knowledge of goroutines and channels — we'll cover concurrency tools from the ground up.<br>Since the book targets experienced programmers, I've chosen a presentation style that I prefer: concise, focused, with exercises of moderate difficulty. Maybe you'll like it too.<br>Concurrent programming is a tricky beast, but I explain complex topics clearly, making them easier to understand. There are lots of examples and no dry theory.<br>There are dozens of interactive exercises that run directly in the browser. Each problem has an automated test suite that provides immediate feedback and a reference solution with an explanation.<br>There is no AI-generated or copied content. The book is 100% original.<br>Contents<br>Part 1. Concurrency basics<br>Goroutines<br>Channels<br>Pipelines<br>Time<br>Context<br>Part 2. Synchronization<br>Wait groups<br>Data races<br>Race conditions<br>Semaphores<br>Signaling<br>Atomics<br>Part 3. Other topics<br>Testing<br>Internals

The book is available online and as a PDF.

You can read the chapters using the links in the table of contents above, or purchase the book for full access to the interactive exercises (+ a PDF version).<br>Buy for $25

or read online<br>About the author<br>I'm Anton Zhiyanov. I work on open source and write interactive technical guides.<br>In 2022 I launched a course on Go concurrency. It now has 250 graduates and an average rating of 5 stars based on 100 student reviews.<br>This book is based on the original course.<br>Book details<br>Go 1.26 (last updated: 2026-07-16)<br>500+ interactive examples<br>50 auto-tested exercises (with solutions)<br>448-page PDF (15.8 × 21.4 cm or 6.22 × 8.43 inches)<br>★ Subscribe to keep up with new posts.

&larr; Go features by version

Gist of Go: Goroutines &rarr;

See also<br>Writing a package manager<br>Go features by version<br>Go 1.23 interactive tour

book concurrency interactive exercises gist like

Related Articles