Solve the slow speed of go get stuck

Use proxy: https://goproxy.io/zh/
Just use the following command:

go env -w GOPROXY=https://goproxy.io,direct

# 还可以设置不走 proxy 的私有仓库或组,多个用逗号相隔(可选)
go env -w GOPRIVATE=*.corp.example.com,github.com/org_private

Guess you like

Origin blog.csdn.net/m0_46161993/article/details/112998358