Go
Quality Commands
Maintain code quality with Go's built-in tools: go vet for suspicious constructs, gofmt for formatting, and golangci-lint for comprehensive linting across your project.
7 commands
Pro Tips
Use 'golangci-lint run' instead of individual linters — it runs 50+ linters in parallel efficiently.
Run 'gofmt -s -w .' to simplify and format all Go files in place. Add to pre-commit hooks.
Use 'go vet ./...' in CI — it catches real bugs like printf format mismatches and unreachable code.
Common Mistakes
Don't ignore 'go vet' warnings — they indicate actual bugs, not style preferences.
golangci-lint config (.golangci.yml) should be committed. Without it, different team members get different results.