Skip to content
Snippets Groups Projects
Commit 60c1d049 authored by Yao Ge's avatar Yao Ge
Browse files

go cache

parent 57548be4
Branches newdoc
No related tags found
No related merge requests found
南大源采用了阿里云、七牛云和官方源混合的形式。
注意,南大镜像同时提供 go 二进制文件下载,具体文件请[参考链接](https://mirror.nju.edu.cn/golang/)
go 配置方式比较简单,执行以下命令:
```shell
go env -w GO111MODULE=on # 启用 Go Modules 功能
go env -w GOPROXY="https://repo.nju.edu.cn/repository/go/,direct" # 配置代理
go env | grep GOPROXY # linux 确认配置
go env |findstr "GOPROXY" # windows 确认配置
```
如有私有模块,可以通过以下命令特殊设置:
```shell
go env -w GOPRIVATE="*.nju.edu.cn"
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment