go-nil-interface
CommunityInterface nil trap patterns.
AuthorJamesPrial
Version1.0.0
Installs0
System Documentation
What problem does it solve?
A typed nil stored in an interface is not nil, which can lead to surprising errors if not handled.
Core Features & Use Cases
- Typed Nil Handling: Return untyped nil or handle nil receivers safely.
- Practical Examples: Clear CORRECT vs WRONG patterns for common interfaces.
Quick Start
Refactor a function returning errors to ensure nil is untyped when appropriate.
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-nil-interface Download link: https://github.com/JamesPrial/claudefiles/archive/main.zip#go-nil-interface 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.