LogoClawIndex
CasesSkillsAbout
LogoClawIndex

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-11

Capabilities

Typical Inputs

Typical Outputs

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

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.
Go
design patterns
API design
code style
define Option interface
create With* constructors
configure optional parameters
apply options to struct
Go source code
API design requirements
optional configuration parameters
Go code with functional options pattern
configured constructor functions