collections
CommunityMaster Go collections for robust code.
Authormeriley
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers write more robust and performant Go code by providing best practices for using slices and maps, preventing common bugs like nil panics and inefficient memory allocation.
Core Features & Use Cases
- Nil Semantics: Understand the difference between nil and empty slices/maps and when to use each.
- Capacity Hints: Learn to pre-allocate slices and maps for performance gains.
- Safe Iteration & Modification: Discover patterns for safely iterating over and modifying collections.
- Thread Safety: Understand when and how to use
sync.Mapor mutexes for concurrent access. - Use Case: When initializing or iterating over slices and maps in your Go application, use this Skill to ensure you're following best practices for nil handling, capacity, and thread safety.
Quick Start
Review the Go code for slice and map usage to ensure nil semantics and capacity hints are correctly applied.
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: collections Download link: https://github.com/meriley/claude-code-skills/archive/main.zip#collections 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.