config-designing
CommunityPick the right Go config pattern.
Authorkaptinlin
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Go projects often struggle to pick a configuration pattern that cleanly separates serializable config from runtime options. This guide helps you decide between Config struct + Options, Options Only, and go-config for applications, ensuring scalable, maintainable design.
Core Features & Use Cases
- Decision patterns for library design and application wiring.
- Guidance on migration from older constructors to Config + New(cfg, opts...).
- Clear rules for zero-value defaults and separation of concerns.
Quick Start
Choose a pattern and implement it by creating a Config struct with a New(cfg, opts...) signature, or use an Options-Only constructor for runtime dependencies.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: config-designing Download link: https://github.com/kaptinlin/gozod/archive/main.zip#config-designing 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.