go version
go 1.20.7
go 1.17 以后都是用 go install 命令
D:\Go\bin\go.exe get -u github.com/nsf/gocode
D:\Go\bin\go.exe get -u golang.org/x/tools/cmd/guru
D:\Go\bin\go.exe get -u github.com/rogpeppe/godef>> Running: D:\Go\bin\go.exe get -u github.com/nsf/gocode
go: go.mod file not found in current directory or any parent directory.'go get' is no longer supported outside a module.To build and install a command, use 'go install' with a version,like 'go install example.com/cmd@latest'For more information, see https://golang.org/doc/go-get-install-deprecationor run 'go help get' or 'go help install'.^^^ Terminated, exit code: 1 ^^^^^
>> Running: D:\Go\bin\go.exe get -u golang.org/x/tools/cmd/guru
go: go.mod file not found in current directory or any parent directory.'go get' is no longer supported outside a module.To build and install a command, use 'go install' with a version,like 'go install example.com/cmd@latest'For more information, see https://golang.org/doc/go-get-install-deprecationor run 'go help get' or 'go help install'.^^^ Terminated, exit code: 1 ^^^
>> Running: D:\Go\bin\go.exe get -u github.com/rogpeppe/godef
go: go.mod file not found in current directory or any parent directory.'go get' is no longer supported outside a module.To build and install a command, use 'go install' with a version,like 'go install example.com/cmd@latest'For more information, see https://golang.org/doc/go-get-install-deprecationor run 'go help get' or 'go help install'.^^^ Terminated, exit code: 1 ^^^D:\Go\bin\go.exe install github.com/nsf/gocode@latest
D:\Go\bin\go.exe install golang.org/x/tools/cmd/guru@latest
D:\Go\bin\go.exe install github.com/rogpeppe/godef@latest