Go的Proxy问题

设置GOPROXY代理:

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

设置GOPRIVATE来跳过私有库,比如常用的Gitlab或Gitee,中间使用逗号分隔:

1
go env -w GOPRIVATE=*.gitlab.com,*.gitee.com
Author

InverseDa

Posted on

2023-01-08

Updated on

2023-03-30

Licensed under

Comments

Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×