go-guide
Installation
SKILL.md
Go Guide
Applies to: Go 1.21+, Microservices, APIs, CLIs
Core Principles
- Simplicity: Prefer simple, readable code over clever solutions
- Concurrency: Use goroutines and channels for concurrent operations
- Errors Are Values: Explicit error handling, no exceptions
- Composition Over Inheritance: Interfaces and struct embedding
- Standard Library First: Rich stdlib, minimize dependencies
Guardrails
Version & Dependencies
- Use Go 1.21+ with Go modules (
go.mod) - Run
go mod tidybefore committing - Pin major versions in
go.mod