Skip to content

Instantly share code, notes, and snippets.

@cpusoft
Created April 22, 2020 03:00
Show Gist options
  • Save cpusoft/38fab6936689e046ac0794e8f0645f42 to your computer and use it in GitHub Desktop.
Save cpusoft/38fab6936689e046ac0794e8f0645f42 to your computer and use it in GitHub Desktop.
通过设置GOPROXY下载go依赖
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.io,direct
# 设置不走 proxy 的私有仓库,多个用逗号相隔(可选)
go env -w GOPRIVATE=*.corp.example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment