Functional Options Skill

Community

Design flexible Go APIs with functional options.

Authormeriley
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the complexity of managing numerous optional parameters in Go constructors and APIs, providing a clean, extensible, and maintainable solution.

Core Features & Use Cases

  • Flexible Constructors: Easily create objects with default settings and optional configurations.
  • Extensible APIs: Add new configuration options in the future without breaking existing code.
  • Use Case: When building a new HTTP client, use functional options to allow users to specify timeouts, retry counts, custom headers, and logging without creating an unwieldy constructor signature.

Quick Start

Use the functional options skill to create a new HTTP client with a 10-second timeout.

Dependency Matrix

Required Modules

None required

Components

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: Functional Options Skill
Download link: https://github.com/meriley/claude-code-skills/archive/main.zip#functional-options-skill

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.