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).

tomevault-io Updated

File contents

tomevault-io/skills-registry/tree/main/cxuu--golang-skills--golang-skills commit 117bd2ff38

Frequently asked questions

npx skillmds@latest add tomevault-io/go-functional-options