MirrorsProxy.Download

换源/Go 工具链下载

Go 工具链下载 镜像源

Go 语言安装包(go.dev/dl)国内镜像,手动安装与 g / goenv 等版本管理器提速;模块代理见 Go Modules 页。

可用镜像源(6)

源地址
Google 中国https://golang.google.cn/dl/
studygolanghttps://studygolang.com/dl
阿里云https://mirrors.aliyun.com/golang/
中科大https://mirrors.ustc.edu.cn/golang/
官方https://go.dev/dl/
华中科技大学 HUSThttps://mirrors.hust.edu.cn/golang/

换源方法

手动下载安装包

wget https://mirrors.aliyun.com/golang/go1.22.5.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.22.5.linux-amd64.tar.gz

g / goenv 版本管理器加速

export G_GO_BASE_URL=https://mirrors.aliyun.com/golang/
export GOENV_GO_DOWNLOAD_URL=https://mirrors.aliyun.com/golang/

模块代理(另见 Go Modules 页)

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

使用提示

  • ·先用 `chsrc measure ` 或本站节点测速挑最快源,别盲选。
  • ·镜像同步通常滞后几分钟到几小时,刚发布的版本拉不到时临时回官方源。
  • ·锁定版本 / 提交 lockfile,避免不同源之间版本漂移。
  • ·私有包与凭据不要发给第三方镜像;私有仓库走官方或自建源。

其他工具

← 返回换源索引