什麼是 golang-concurrency-patterns?
生產服務的 Go 並發模式:上下文取消、errgroup、工作池、有限並行、扇入/扇出以及常見的競爭/死鎖陷阱 來源:bobmatnyc/claude-mpm-skills。
生產服務的 Go 並發模式:上下文取消、errgroup、工作池、有限並行、扇入/扇出以及常見的競爭/死鎖陷阱
透過命令列快速安裝 golang-concurrency-patterns AI 技能到你的開發環境
來源:bobmatnyc/claude-mpm-skills。
Go concurrency scales when goroutine lifetimes are explicit, cancellation is propagated with context.Context, and shared state is protected (channels or locks). Apply these patterns to build reliable services and avoid common failure modes: goroutine leaks, deadlocks, and data races.
Treat goroutines as resources with a clear owner and shutdown condition.
Use errgroup.WithContext to run concurrent tasks, cancel siblings on error, and wait for completion.
生產服務的 Go 並發模式:上下文取消、errgroup、工作池、有限並行、扇入/扇出以及常見的競爭/死鎖陷阱 來源:bobmatnyc/claude-mpm-skills。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/bobmatnyc/claude-mpm-skills --skill golang-concurrency-patterns生產服務的 Go 並發模式:上下文取消、errgroup、工作池、有限並行、扇入/扇出以及常見的競爭/死鎖陷阱 來源:bobmatnyc/claude-mpm-skills。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/bobmatnyc/claude-mpm-skills --skill golang-concurrency-patterns 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/bobmatnyc/claude-mpm-skills