Golang代码质量检查工具GolangCI-Lint
直接用下面go get的方式会出现报错
go get github.com/golangci/golangci-lint/cmd/golangci-lint
解决方法
直接去 https://github.com/golangci/golangci-lint/releases 下载对应版本
go < 1.9 isn’t supported
go1.9 is officially supported by golangci-lint <= v1.10.2
go1.10 is officially supported by golangci-lint <= 1.15.0.
go1.11 is officially supported by golangci-lint <= 1.17.1.
go1.12+ are officially supported by the latest version of golangci-lint (>= 1.18.0).