百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
G

go-concurrency-exercises

> 编程语言
开源

通过实际生活中的示例进行实践练习,学习和练习 Go 并发模式。提供测试用例来验证您的答案。

2.0K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

通过实际生活中的示例进行实践练习,学习和练习 Go 并发模式。提供测试用例来验证您的答案。

Go 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

  1. Only edit main.go to solve the problem. Do not touch any of the other files.
  2. If you find a *_test.go file, you can test the correctness of your solution with go test
  3. 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.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Go

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言