go-functional-options - Go Functional Options Pattern for API Design
Implement the functional options pattern for Go constructors and APIs with optional configuration.
Tags
Updated: 2026-02-11Capabilities
What this skill does
- define option interface
- implement option types
- create With* constructors
- configure constructor parameters
- apply options to configuration
Inputs
- Go codebase
- API design requirements
- optional configuration parameters
- constructor signatures
Outputs
- configured constructors
- extensible API design
- option interface implementations
Requirements
- Go 1.11+ environment
- understanding of Go interfaces
- basic Go programming knowledge
