Implements idiomatic Go patterns and best practices to build robust, maintainable, and efficient applications.
The golang-patterns skill provides a comprehensive framework for writing high-quality Go code by adhering to core language principles like simplicity, clarity, and effective interface design. It offers deep expertise in handling errors with context, managing complex concurrency through worker pools and errgroups, and optimizing performance using memory-efficient techniques. Ideal for both new projects and refactoring legacy systems, this skill ensures that your Go applications follow the 'Accept interfaces, return structs' mantra and maintain a standardized project layout for better scalability.
主な機能
01Advanced concurrency management including worker pools and graceful shutdowns
02Idiomatic Go code generation focusing on simplicity and readability
035 GitHub stars
04Context-aware error handling and wrapping patterns
05Memory and performance optimization strategies like sync.Pool and slice pre-allocation
06Standardized project layout and package organization guidance
ユースケース
01Refactoring existing Go codebases to improve error handling and concurrency safety
02Designing and scaffolding new Go microservices with idiomatic directory structures
03Implementing high-performance data processing pipelines using concurrent worker patterns