SKILL42.2K installs3.7K

Golang Design Patterns

Idiomatic Golang design patterns — functional options, constructors, error flow and cascading, resource management and lifecycle, graceful shutdown, resilience, architecture, dependency injection, data handling, streaming, and more. Apply when explicitly choosing between architectural patterns, implementing functional options, designing constructor APIs, setting up graceful shutdown, applying resilience patterns, or asking which idiomatic Go pattern fits a specific problem.

Type
Skill
Author
samber
Category
Backend
GitHub stars
3.7K
Installs
42.2K
Last updated
November 1, 2026

Install

npx skills add https://github.com/samber/cc-skills-golang --skill golang-design-patterns

Use cases


Frequently Asked Questions

Is this a general Go tutorial?

No, it is decision-oriented, aimed at choosing between patterns rather than teaching Go from scratch.

What patterns does it cover?

Functional options, constructors, error flow and cascading, resource management and lifecycle, graceful shutdown, resilience, dependency injection, data handling, and streaming.

When should I reach for it?

When explicitly choosing between architectural patterns or asking which idiomatic Go pattern fits a specific problem.


About this skill

A reference for idiomatic Go patterns: functional options, constructor APIs, error flow and cascading, resource lifecycle, graceful shutdown, resilience, dependency injection, data handling, and streaming. Use it when choosing between architectural approaches or asking which idiomatic pattern fits a specific problem. It's decision-oriented, not a general Go tutorial.

Summary written with AI assistance from the project's public description.


Categories


More from samber


Similar Skills