Skip to content
프로젝트

loong/go-concurrency-exercises

GitHub에서 보기

소개

실제 사례를 활용한 실습으로 Go 동시성 패턴을 학습하고 연습할 수 있습니다. 답을 검증할 수 있도록 테스트 케이스도 제공합니다.

학습 및 교육

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
-1
in 15 days
-2
in 1 month
+7

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Go Concurrency Exercises Build Status Go Report Card

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.

Image of excited gopher

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.

관련 프로젝트 살펴보기

불러오는 중…