error-handling-go

Community

Robust Go error handling patterns.

Authorjralph
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Go-specific error handling patterns, including structured error types, remediation hooks, and observable logging for robust Go services.

Core Features & Use Cases

  • Error Type Definitions: Define typed errors with codes, messages, and severity to standardize error handling across packages.
  • Remediation Interface: Provide actions that can remediate errors and be chained with fallbacks.
  • Dual-Channel Logger: Support for both AI-friendly and human-facing logging to aid debugging and user support.
  • Property-Based Testing: Validate error-related behavior with property-based tests to ensure resilience.

Quick Start

Run the Go implementation to define Error156, including the remediation interface and the HybridLogger, then run unit tests with go test ./... to verify behavior.

Dependency Matrix

Required Modules

None required

Components

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: error-handling-go
Download link: https://github.com/jralph/.config-opencode/archive/main.zip#error-handling-go

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.