loong/go-concurrency-exercises
loong/go-concurrency-exercises has 2,015 GitHub stars and 581 forks. GitHot measured 0 stars in 24 hours and +4 in 7 days. Last checked 2026-11-12 18:09 UTC. Last push 2026-09-03.
Hands on exercises with real-life examples to study and practice Go concurrency patterns. Test-cases are provided to verify your answers.
Measured star growth
- in 24h
- 0
- in 7 days
- +4
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalGo Concurrency Exercises

Exercises for Golang's concurrency patterns.
Why
The Go community has plenty resources to read about go's concurrency model and how to use it effectively. But who actually wants to read all this!? This repo tries to teach concurrency patterns by following the 'learning by doing' approach.

How to take this challenge
- Only edit
main.goto solve the problem. Do not touch any of the other files. - If you find a
*_test.gofile, you can test the correctness of your solution withgo test - If you get stuck, join us on Discord or Slack! Surely there are people who are happy to give you some code reviews (if not, find me via
@loong;) )
For coding agents
This workshop is set up for AI coding agents as well as humans:
AGENTS.md— how to coach a learner, which files are frozen, and how to run tests (AGENTS.md convention)llms.txt— curated index for crawlers and chat agents (llms.txt convention)exercises.json— machine-readable catalog of every challenge.agents/skills/— on-demand skills (take-exercise,maintain-exercises)
Each exercise directory also has its own AGENTS.md. Please do not paste full solutions into main.go unless the learner asks.
Overview
| # | Name of the Challenge + URL |
|---|---|
| 0 | Limit your Crawler |
| 1 | Producer-Consumer |
| 2 | Race Condition in Caching Cache |
| 3 | Limit Service Time for Free-tier Users |
| 4 | Graceful SIGINT Killing |
| 5 | Clean Inactive Sessions to Prevent Memory Overflow |
License
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyleft from 2017 Long Hoang
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
562,139 starspublic-apis/public-apis
A collective list of free APIs
498,523 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
455,188 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,409 stars