指令以及报错内容:
root@c72c70892c3b:/go# go install github.com/go-delve/delve/cmd/dlv@latest
go: github.com/go-delve/delve/cmd/dlv@latest: module github.com/go-delve/delve/cmd/dlv: Get "https://proxy.golang.org/github.com/go-delve/delve/cmd/dlv/@v/list": dial tcp 172.217.160.81:443: connect: connection refused
解决方法:
命令行输入并运行
go env -w GOPROXY=https://goproxy.cn,direct
然后就能成功下载了
全家福如下: