sdk-config-struct-pattern
CommunityStandardize Go SDK Config constructors.
AuthorPremModhaOfficial
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This pattern defines a consistent approach for configuring SDK clients using a dedicated Config struct and a New constructor, reducing boilerplate and improving testability.
Core Features & Use Cases
- Enforces a clear Config struct with required fields and sensible defaults.
- Provides a canonical New(cfg) constructor that wires dependencies and performs validation.
- Encourages safe extension patterns and easier testing across SDK modules.
Quick Start
Start by scaffolding a Config struct and a New constructor that accepts a config object.
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: sdk-config-struct-pattern Download link: https://github.com/PremModhaOfficial/go-sdk-pipeline/archive/main.zip#sdk-config-struct-pattern 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.