go-options-gen
CommunityGenerate type-safe, configurable Go options.
Software Engineering#validation#go#generate#encapsulation#code-generation#functional-options#options-gen
Authormetalagman
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Designing configurable Go components often leads to boilerplate and unsafe code when exposing configuration. options-gen enables generating type-safe, unexported option setters and a clean exported API, reducing boilerplate and improving encapsulation.
Core Features & Use Cases
- Generate unexported option fields with generated setters for validated configuration.
- Enforce validation tags and required fields through a standard constructor pattern.
- Support multiple options in one package and flexible defaults to tailor constructors.
Quick Start
Install the options-gen tool and run go generate to produce the generated option code.
Dependency Matrix
Required Modules
None requiredComponents
assets
💻 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-options-gen Download link: https://github.com/metalagman/agent-skills/archive/main.zip#go-options-gen 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 223,000+ vetted skills library on demand.