What problem does it solve?
This Skill ensures all Go code adheres to idiomatic practices, community standards, and established style guides (Effective Go, Go Code Review Comments, Google's Go Style Guide). It prevents common Go pitfalls, promotes consistency, and reduces the need for extensive code review feedback on style and best practices.
Core Features & Use Cases
- Idiomatic Go Practices: Guides on writing simple, clear, and Go-native code, favoring clarity over cleverness.
- Naming Conventions: Provides detailed rules for naming packages, variables, functions, interfaces, and constants.
- Code Style & Formatting: Enforces
gofmt and goimports usage, comment best practices (why, not what), and error handling.
- Concurrency & Architecture: Offers guidance on goroutines, channels, synchronization, package organization, and API design.
- Use Case: When writing any new Go service or feature, this skill acts as an on-demand expert, ensuring your code is immediately compliant with best practices, from package declarations to error handling and concurrency patterns.
Quick Start
I need to write a new Go package for user authentication. Guide me through the process, focusing on idiomatic Go practices for package naming, function signatures, error handling, and concurrency if applicable.