go-error-handling

SKILLFlusso di lavorocommunity
v0.0.0cxuuApache-2.0Aggiornato 2 mesi faFonte →

Use when writing Go code that returns, wraps, or handles errors — choosing between sentinel errors, custom types, and fmt.Errorf (%w vs %v), structuring error flow, or deciding whether to log or return. Also use when propagating errors across package boundaries or using errors.Is/As, even if the use

Community-submitted skill. Not yet reviewed by the Forge team. Full prompt content may not be available.Request review →
142Stelle del repo
1Client
1Formati
2 mesi faUltimo aggiornamento
Skill
Autorecxuu
Versione0.0.0
LicenzaApache-2.0
CategoriaFlusso di lavoro
Formatiskill.md
PromptNon pubblicato
Compatibilità
Claude✓ Supportato
Cursor
Copilot
ChatGPT
Gemini
Descrizione

Use when writing Go code that returns, wraps, or handles errors — choosing between sentinel errors, custom types, and fmt.Errorf (%w vs %v), structuring error flow, or deciding whether to log or return. Also use when propagating errors across package boundaries or using errors.Is/As, even if the user doesn't ask about error strategy. Does not cover panic/recover patterns (see go-defensive).

Parole chiave
skillclaude