go-error-checking

Community

Type-safe error inspection using errors.Is and errors.As.

AuthorJamesPrial
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Use errors.Is to detect sentinel errors and errors.As to extract concrete error types for precise handling.

Core Features & Use Cases

  • errors.Is: Safe sentinel checks across wrapped errors.
  • errors.As: Extract specific error types for targeted handling.

Quick Start

Demonstrate a function that handles various error types using errors.Is and errors.As.

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: go-error-checking
Download link: https://github.com/JamesPrial/claudefiles/archive/main.zip#go-error-checking

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 223,000+ vetted skills library on demand.