go-design-patterns
CommunityMaster idiomatic Go design patterns.
Authoreduardo-sl
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Go developers often face challenges applying idiomatic design patterns in real codebases; this guide clarifies how to implement patterns like functional options, builders, factories, strategy, and decorators in Go, aligning with the language's composition-focused style.
Core Features & Use Cases
- Functional Options: flexible constructor configuration with safe defaults.
- Constructors and Factories: predictable initialization and dependency management.
- Patterns & Patterns: strategy, builder, factory, middleware chain, and pub/sub patterns adapted for Go contexts.
- Use Case: structure a Go service with configurable components and clean interfaces.
Quick Start
Apply these patterns to a Go project by refactoring constructors, factories, and middleware to use idiomatic options and composition.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: go-design-patterns Download link: https://github.com/eduardo-sl/go-agent-skills/archive/main.zip#go-design-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.