What does it mean that gometalinter checks the golang code?

set the gometalinter check code using goland,. What does that mean?

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
Jan.29,2022

means that the command file goconst cannot be found in the environment variable PATH.
you want to add GOBIN to the PATH.


IDE sets the encoding path to your go_work directory when compiling, goland/eclipse sets the Working directory of Run/Debug Configurations to the go_work directory, OutputDiretory to the gobin directory, generally / path/go/src/bin

Menu