go-concurrency-patterns

Installation
Summary

Production patterns for Go concurrency including goroutines, channels, synchronization primitives, and context management.

  • Covers core primitives: goroutines, channels, select, sync.Mutex, sync.WaitGroup, and context.Context with practical examples for each
  • Includes seven battle-tested patterns: worker pools, fan-out/fan-in pipelines, bounded concurrency with semaphores, graceful shutdown, error groups, concurrent maps, and select timeouts
  • Provides race detection guidance via command-line flags and best practices for avoiding common pitfalls like goroutine leaks and improper channel closure
  • Demonstrates context-based cancellation, deadline management, and proper cleanup patterns across all examples
SKILL.md

Go Concurrency Patterns

Production patterns for Go concurrency including goroutines, channels, synchronization primitives, and context management.

When to Use This Skill

  • Building concurrent Go applications
  • Implementing worker pools and pipelines
  • Managing goroutine lifecycles
  • Using channels for communication
  • Debugging race conditions
  • Implementing graceful shutdown

Core Concepts

1. Go Concurrency Primitives

Primitive Purpose
Related skills

More from wshobson/agents

Installs
6.4K
Repository
wshobson/agents
GitHub Stars
35.2K
First Seen
Jan 20, 2026