使用goland,设置了gometalinter检查代码,下面是什么意思?
D:\workspace\www\go_work\bin\gometalinter.exe --vendor --fast --enable-gc --tests --aggregate --disable=gotype D:\workspace\www\go_work\src\apiserver\model
WARNING: exec: "goconst": executable file not found in %PATH%
WARNING: exec: "gocyclo": executable file not found in %PATH%
WARNING: exec: "gosec": executable file not found in %PATH%
WARNING: exec: "gotype": executable file not found in %PATH%
WARNING: exec: "ineffassign": executable file not found in %PATH%
WARNING: exec: "golint": executable file not found in %PATH%
Process finished with exit code 2
就是说命令文件
goconst
在环境变量 PATH 中找不到。你要把 GOBIN 加入在 PATH 中。