Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
NJU Mirror Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
NJU LUG
NJU Mirror Frontend
Commits
60c1d049
Commit
60c1d049
authored
3 years ago
by
Yao Ge
Browse files
Options
Downloads
Patches
Plain Diff
go cache
parent
57548be4
Branches
newdoc
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/configs/documentations/2021-08-20-go.md
+19
-0
19 additions, 0 deletions
public/configs/documentations/2021-08-20-go.md
with
19 additions
and
0 deletions
public/configs/documentations/2021-08-20-go.md
0 → 100644
+
19
−
0
View file @
60c1d049
南大源采用了阿里云、七牛云和官方源混合的形式。
注意,南大镜像同时提供 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"
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment