Golang Patterns

Use this skill when the user says 'Go goroutine', 'Go concurrency', 'Go channel', 'Go error handling', 'Go HTTP', 'Go middleware', 'Go context', 'Go worker pool', 'Go mutex', 'Go select', or when implementing Go-specific patterns. This skill enforces: goroutine lifecycle (every goroutine has a stop condition), errgroup for parallel work, error wrapping, HTTP handler DI via struct/closure, and graceful shutdown. Requires Go (go.mod). Do NOT use for: Go project structure, interface design, or non-Go patterns.

j4flmao Updated

File contents

j4flmao/agent-skills/tree/main/skills/backend/go/patterns commit 4eab27f569

Frequently asked questions

npx skillmds@latest add j4flmao/golang-patterns