GoProxy 设置镜像,以 https://goproxy.cn,direct 为例(笔记)

179 阅读1分钟

启用 Go Modules 功能

go env -w GO111MODULE=on

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