go-concurrency
Installation
SKILL.md
Go Concurrency Patterns
Common concurrency patterns and best practices in Go.
When to Use
- Implementing concurrent operations in Go
- Working with goroutines and channels
- Building scalable, concurrent systems
- Avoiding common concurrency bugs
Fundamental Patterns
Worker Pool
func workerPool(jobs <-chan int, results chan<- int, numWorkers int) {
var wg sync.WaitGroup