I\'m trying to install golint with the command: go get -u golang.org/x/lint/golint. And I think I got two problems:
go get: warning:
modules disabled by GO
It looks like you have a go.mod
file inside $GOPATH/ (under $GOPATH/go.mod
). You should remove that. Also, since you are using Go 1.11 or newer, you can run the go get
command from well outside of GOPATH/any directory containing a go.mod
file either directly or in a parent directory, and then the command should work.