官方版本对应描述如下:
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). ————————————————
golangci-lint.exe
文件直接放到GOPATH\bin
目录下就可以直接使用了官网推荐三种使用方式:
golangci-lint run
golangci-lint run ./…
这里…代表的就是检测目录下所有的文件
golangci-lint run dir1 dir2/… dir3/file1.go
本文由博客作者流雨声
github地址:https://github.com/vpc123