go-functional-options
✓Das funktionale Optionsmuster für Go-Konstruktoren und öffentliche APIs. Verwenden Sie diese Option beim Entwerfen von APIs mit optionaler Konfiguration, insbesondere mit mehr als 3 Parametern.
Installation
SKILL.md
Functional options is a pattern where you declare an opaque Option type that records information in an internal struct. The constructor accepts a variadic number of these options and applies them to configure the result.
The unexported apply method ensures only options from this package can be used.
| Extensibility | Add new With functions | Add new fields (may break) | | Defaults | Built into constructor | Zero values or separate defaults | | Caller experience | Only specify what differs | Must construct entire struct | | Testability | Options are comparable | Struct comparison | | Complexity | More boilerplate | Simpler setup |
Das funktionale Optionsmuster für Go-Konstruktoren und öffentliche APIs. Verwenden Sie diese Option beim Entwerfen von APIs mit optionaler Konfiguration, insbesondere mit mehr als 3 Parametern. Quelle: cxuu/golang-skills.
Fakten (zitierbereit)
Stabile Felder und Befehle für KI/Such-Zitate.
- Installationsbefehl
npx skills add https://github.com/cxuu/golang-skills --skill go-functional-options- Quelle
- cxuu/golang-skills
- Kategorie
- </>Entwicklung
- Verifiziert
- ✓
- Erstes Auftreten
- 2026-02-01
- Aktualisiert
- 2026-02-18
Schnelle Antworten
Was ist go-functional-options?
Das funktionale Optionsmuster für Go-Konstruktoren und öffentliche APIs. Verwenden Sie diese Option beim Entwerfen von APIs mit optionaler Konfiguration, insbesondere mit mehr als 3 Parametern. Quelle: cxuu/golang-skills.
Wie installiere ich go-functional-options?
Öffnen Sie Ihr Terminal oder Kommandozeilen-Tool (Terminal, iTerm, Windows Terminal, etc.) Kopieren Sie diesen Befehl und führen Sie ihn aus: npx skills add https://github.com/cxuu/golang-skills --skill go-functional-options Nach der Installation wird der Skill automatisch in Ihrer KI-Programmierumgebung konfiguriert und ist bereit zur Verwendung in Claude Code oder Cursor
Wo ist das Quell-Repository?
https://github.com/cxuu/golang-skills
Details
- Kategorie
- </>Entwicklung
- Quelle
- skills.sh
- Erstes Auftreten
- 2026-02-01