go-functional-options - Implement Functional Options Pattern for Go APIs
Applies the functional options pattern to Go constructors and public APIs with optional configuration.
Tags
Updated: 2026-02-11Capabilities
What this skill does
- define Option interface
- create With* constructors
- configure optional parameters
- apply options to struct
Inputs
- Go source code
- API design requirements
- optional configuration parameters
Outputs
- Go code with functional options pattern
- configured constructor functions
Requirements
- Go programming environment
- basic understanding of Go language
