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

om-scogo aa249b2 4 files · 13.3 KB Updated 0 repo stars

File contents

om-scogo/skillsh-scraper/tree/main/data/skills/cxuu-golang-skills/go-functional-options commit aa249b24ab

Frequently asked questions

npx skillmds add om-scogo/go-functional-options