您需要设置代理来破墙下载 https://goproxy.io/zh/一个为Go模块而生的全球代理 在cmd中设置 go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.cn,direct