Apply Effective Go best practices when working with Go source file
Follow Effective Go guidelines (https://go.dev/doc/effective_go) for all Go code:
- Use clear, descriptive names that reflect the Go naming conventions
- Prefer short variable names in short scopes (i, j for loops; r for reader)
- Use camelCase for unexported identifiers, PascalCase for exported ones
- Write self-documenting code with minimal but meaningful comments
- Use gofmt for consistent formatting
- Handle errors explicitly - never ignore them
- Use defer for cleanup operations
- Prefer composition over inheritance
- Use interfaces to define behavior contracts
- Keep functions and methods focused and small
- Use goroutines and channels for concurrent programming
- Follow the principle "Don't communicate by sharing memory; share memory by communicating"
No Docs configured
No Prompts configured
No Data configured
URL: https://mcp.context7.com/mcp