Created
April 22, 2020 03:00
-
-
Save cpusoft/38fab6936689e046ac0794e8f0645f42 to your computer and use it in GitHub Desktop.
通过设置GOPROXY下载go依赖
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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