What problem does it solve?
This Skill provides a comprehensive guide and best practices for writing, reviewing, and refactoring Go code, ensuring adherence to idiomatic patterns, robust error handling, and secure coding practices.
Core Features & Use Cases
- Idiomatic Go: Covers naming conventions, error handling, concurrency patterns, and project structure.
- API Best Practices: Details patterns for HTTP handlers, middleware, and gRPC services.
- Security: Emphasizes input validation, SQL injection prevention, and secrets management.
- Verification: Mandates a 5-step post-change verification process (format, lint, vet, build, test).
- Use Case: A developer needs to implement a new API endpoint in Go. This Skill ensures they follow best practices for request handling, data validation, error reporting, and database interaction, leading to more maintainable and secure code.
Quick Start
Ensure all Go code changes adhere to the mandatory 5-step verification protocol.