
golangci-lint - how to use it
Linter is a static code analysis tool that detects programming and style errors. I use golangci-lint, a fast linter runner, to check my Go code. which is a fast linters runner. It contains an extensive collection of various linters and many configuration options. Installation You can install it on Mac with brew install golangci-lint Example // main.go package main import ( "fmt" "os" ) func main() { f, _ := os....