go-development
Installation
SKILL.md
Go Development
Apply idiomatic Go principles from Effective Go, the Go Code Review Comments wiki, and Go Proverbs to all code in this session.
Core Principles (Go Proverbs)
- Don't communicate by sharing memory; share memory by communicating
- The bigger the interface, the weaker the abstraction
- Make the zero value useful
- Errors are values — handle them, don't just check them
- A little copying is better than a little dependency
- Don't panic — use errors for normal control flow
Error Handling
Always return errors as the last value. Use early returns — no else after an if err != nil block.