go-error-handling
OfficialAdvanced Go error handling patterns.
AuthorTheBushidoCollective
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provides robust patterns for errors in Go, including wrapping, sentinel errors, custom error types, and best practices with errors package.
Core Features & Use Cases
- Error Wrapping: Wrap context with errors for better debugging.
- Sentinel Errors: Define and compare custom error values.
- Custom Error Types: Create structured error types with additional context.
Quick Start
Implement a function that returns a wrapped error using fmt.Errorf("...%w...") and demonstrate error inspection with errors.Is/As.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: go-error-handling Download link: https://github.com/TheBushidoCollective/han/archive/main.zip#go-error-handling Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.