This skill provides Claude with domain-specific guidance for managing Go collections effectively, drawing from established standards like the Google and Uber style guides. It assists in making critical decisions such as choosing between new and make, implementing sets with maps, handling slice growth with append, and navigating the subtle differences between nil and empty slices for JSON serialization. It ensures that data structures are implemented correctly at API boundaries and helps developers avoid common pitfalls like accidental mutex copying or inefficient multi-dimensional slice allocation.
主な機能
0177 GitHub stars
02Standardized set implementations using Go map patterns
03Idiomatic slice and map allocation strategies (make vs. nil)
04Value vs. pointer copying safety checks for complex Go structs
05JSON-aware slice declaration patterns for predictable API output
06Safe and efficient multi-dimensional slice initialization
ユースケース
01Refactoring Go codebases to align with Google and Uber production standards
02Building high-performance backend services with efficient memory usage
03Ensuring JSON API compatibility for empty collections and null values