functions-methods
CommunityWrite idiomatic Go functions and methods.
Authormeriley
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers write cleaner, more maintainable Go code by establishing consistent patterns for function and method signatures, making APIs intuitive and easier to use.
Core Features & Use Cases
- Consistent Signatures: Enforces best practices like
contextfirst,errorlast, and using parameter structs for complex functions. - Receiver Patterns: Guides on using pointer vs. value receivers for clarity and efficiency.
- Use Case: When designing a new API endpoint or refactoring existing Go code, use this Skill to ensure all functions and methods adhere to established best practices for readability and maintainability.
Quick Start
Review the Go function signature for CreateTask to ensure it follows best practices.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: functions-methods Download link: https://github.com/meriley/claude-code-skills/archive/main.zip#functions-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.