Go Functional Options

Use when designing a Go constructor or factory function with optional configuration — especially with 3+ optional parameters or extensible APIs. Also use when building a New* function that takes many settings, even if they don't mention "functional options" by name. Does not cover general function design (see go-functions).

aneviaro 4af3552 2 files · 11.0 KB Updated

File contents

aneviaro/pipack/tree/main/agent/skills/go-functional-options commit 4af355250d

Frequently asked questions

npx skillmds@latest add aneviaro/go-functional-options