跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Golang Concurrency Patterns

技能 已验证 活跃

Go concurrency patterns for production services: context cancellation, errgroup, worker pools, bounded parallelism, fan-in/fan-out, and common race/deadlock pitfalls

目的

To equip developers with the knowledge and best practices for building robust and reliable concurrent Go services, avoiding common pitfalls.

功能

  • Detailed explanation of Go concurrency patterns
  • Best practices for context cancellation and errgroup
  • Guidance on worker pools and bounded parallelism
  • Strategies for handling race conditions and deadlocks
  • Troubleshooting common concurrency issues

使用场景

  • Implementing concurrent pipelines in Go services
  • Fixing goroutine leaks and deadlocks
  • Ensuring cancellation propagates correctly
  • Building reliable background worker systems

非目标

  • Providing specific framework implementations
  • Covering low-level network programming
  • Offering general Go language tutorials

安装

npx skills add bobmatnyc/claude-mpm-skills

通过 npx 运行 Vercel skills CLI(skills.sh)— 需要本地安装 Node.js,以及至少一个兼容 skills 的智能体(Claude Code、Cursor、Codex 等)。前提是仓库遵循 agentskills.io 格式。

质量评分

已验证
100 /100
1 day ago 分析

信任信号

最近提交29 days ago
星标44
许可证MIT
状态
查看源代码

类似扩展

Golang Pro

98

Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with generics, interfaces, and robust error handling. Use when building Go applications requiring concurrent programming, microservices architecture, or high-performance systems. Invoke for goroutines, channels, Go generics, gRPC integration, CLI tools, benchmarks, or table-driven testing.

技能
jeffallan

Neon Postgres

100

Neon Serverless Postgres 的使用指南和最佳实践。涵盖入门、使用 Neon 进行本地开发、选择连接方法、Neon 功能、身份验证(@neondatabase/auth)、PostgREST 风格的数据 API(@neondatabase/neon-js)、Neon CLI 以及 Neon 的平台 API/SDK。可用于任何与 Neon 相关的问题。

技能
neondatabase

Sdk Dx

100

Design SDKs that developers love to use—APIs that feel native, error messages that guide, and experiences that reduce friction. This skill covers creating SDKs that drive adoption through exceptional developer experience rather than aggressive marketing. Trigger phrases: "SDK design", "developer experience", "API design", "SDK DX", "error messages", "type safety", "IDE integration", "SDK versioning", "migration guides", "client library design", "making SDKs feel native", "SDK best practices"

技能
jonathimer

Csharp Async

100

Get best practices for C# async programming

技能
github

Dart Matcher Best Practices

100

Best practices for using `expect` and `package:matcher`. Focuses on readable assertions, proper matcher selection, and avoiding common pitfalls.

技能
flutter

Coding Standards

100

Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns.

技能
affaan-m