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
Godesign patternsAPI designcode style

Capabilities

define Option interfacecreate With* constructorsconfigure optional parametersapply options to struct

Typical Inputs

Go source codeAPI design requirementsoptional configuration parameters

Typical Outputs

Go code with functional options patternconfigured constructor functions

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.