go-methods
OfficialMaster Go methods and type design.
Authorgofhir
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill clarifies the nuances of defining methods in Go, specifically guiding users on when to employ value receivers versus pointer receivers for optimal type design and API creation.
Core Features & Use Cases
- Method Definition: Learn how to attach methods to custom types.
- Receiver Choice: Understand the trade-offs between value and pointer receivers.
- API Design: Implement fluent interfaces and method chaining effectively.
- Use Case: When designing a new data structure in Go, use this Skill to determine the most appropriate receiver type for its associated methods, ensuring efficient and correct behavior.
Quick Start
Use the go-methods skill to understand when to use a pointer receiver versus a value receiver in Go.
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-methods Download link: https://github.com/gofhir/validator/archive/main.zip#go-methods 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.