1
1
Fork 0
mirror of https://github.com/goproxy/goproxy.cn.git synced 2020-06-03 17:45:32 +00:00
The most trusted Go module proxy in China. https://goproxy.cn
Go to file
Aofei Sheng df4323e279 chore: update modules 2020-05-21 18:31:16 +08:00
.github/ISSUE_TEMPLATE chore: update issue templates 2020-03-15 20:51:09 +08:00
assets chore: update logo images 2020-03-29 03:01:53 +08:00
base refactor: refine handler.hStat 2020-03-29 05:10:46 +08:00
faqs refactor: redesign faq page 2020-03-13 20:26:19 +08:00
handler docs: refine comments 2020-04-18 01:08:00 +08:00
locales feat: add Statistics API support 2020-03-27 12:42:17 +08:00
model refactor: redesign faq page 2020-03-13 20:26:19 +08:00
templates fix: correct typo in templates/stats.html 2020-04-14 13:02:34 +08:00
.gitignore chore: add .gitignore 2019-03-23 10:55:02 +08:00
apple-touch-icon.png chore: update logo images 2020-03-29 03:01:53 +08:00
config.toml chore: update config.toml 2020-04-14 01:45:46 +08:00
favicon.ico chore: update logo images 2020-03-29 03:01:53 +08:00
go.mod chore: update modules 2020-05-21 18:31:16 +08:00
go.sum chore: update modules 2020-05-21 18:31:16 +08:00
goproxy.cn.service chore: update goproxy.cn.service 2020-03-15 18:57:09 +08:00
LICENSE chore: add LICENSE 2019-03-23 10:55:42 +08:00
main.go refactor: make TLS 1.0 and TLS 1.1 drop only when in non-debug mode 2020-05-03 19:41:06 +08:00
README.md chore: update issue templates 2020-03-15 20:51:09 +08:00
README.zh-CN.md chore: update issue templates 2020-03-15 20:51:09 +08:00
robots.txt refactor: serve basic files 2019-08-14 00:03:16 +08:00
unknown-badge.svg chore: update unknown-badge.svg 2020-03-29 03:36:31 +08:00

English简体中文

Goproxy China

The most trusted Go module proxy in China.

Goproxy China has fully implemented the Go's module proxy protocol. And it's a non-profit project supported by China's well-trusted cloud service provider Qiniu Cloud. Our goal is to provide a free, trusted, always on, and CDNed Go module proxy for Gophers in China and the rest of the world. Please subscribe to our real-time and historical data on system performance at status.goproxy.cn.

Goproxy China only focuses on the development of the web application that serves at the https://goproxy.cn. If you're looking for a dead simple way to build your own Go module proxy, then you should take a look at Goproxy which is Goproxy China based on.

Happy coding, Gophers! ;-)

Note that in order to better help Gophers to use Go moduels, Goproxy China now supports answering all Go moduels related questions (no longer just related to Go module proxy), all you need to do is simply follow the issue template to post questions here. Don't forget to check if our FAQ page already has the question you want to ask.

Usage

Open your terminal and execute

$ go env -w GO111MODULE=on
$ go env -w GOPROXY=https://goproxy.cn,direct

done.

macOS or Linux

Open your terminal and execute

$ export GO111MODULE=on
$ export GOPROXY=https://goproxy.cn

or

$ echo "export GO111MODULE=on" >> ~/.profile
$ echo "export GOPROXY=https://goproxy.cn" >> ~/.profile
$ source ~/.profile

done.

Windows

Open your PowerShell and execute

C:\> $env:GO111MODULE = "on"
C:\> $env:GOPROXY = "https://goproxy.cn"

or

1. Open the Start Search, type in "env"
2. Choose the "Edit the system environment variables"
3. Click the "Environment Variables…" button
4. Under the "User variables for <YOUR_USERNAME>" section (the upper half)
5. Click the "New..." button
6. Choose the "Variable name" input bar, type in "GO111MODULE"
7. Choose the "Variable value" input bar, type in "on"
8. Click the "OK" button
9. Click the "New..." button
10. Choose the "Variable name" input bar, type in "GOPROXY"
11. Choose the "Variable value" input bar, type in "https://goproxy.cn"
12. Click the "OK" button

done.

FAQ

Why create Goproxy China?

Due to the Chinese government's network supervision system, there're lot of modules in the Go ecosystem that Chinese Gophers cannot go get, such as the most famous golang.org/x/.... And the speed of getting modules from GitHub in the mainland of China is a bit slow. So we created Goproxy China to make Gophers in China better use Go modules. In fact, since the goproxy.cn has been CDNed, Gophers in other countries can also use it.

Is it safe to use Goproxy China?

Of course, as with all other Go module proxies, we just cache the modules as they are, so we can assure you that they will never be tampered with on our side. However, if you still can't fully trust us, then you can use the most trusted checksum database sum.golang.org to ensure that the modules you get from us have not been tampered with, since Goproxy China already supports proxying checksum databases.

Goproxy China is a business-supported project rather than a personal project. And it has been ICP filed in the MIIT of China (ICP license: 沪ICP备11037377号-56), which means it's fully legal in China.

Why not use the proxy.golang.org?

The proxy.golang.org has been blocked in the mainland of China. So, no. However, if you're not in the mainland of China, then we recommend that you give priority to using the proxy.golang.org, after all, it looks more official. Once you enter the mainland of China, we hope that you'll think of the goproxy.cn in the first place, which is the main reason why we choose the .cn as the domain name extension.

Who will answer the questions that I have asked in here?

Members of Goproxy China and enthusiastic volunteers from our great Go community. Please keep in mind that in order to alleviate the workload of others, don't forget to check if our FAQ page already has the question you want to ask.

Don't forget to check out our FAQ page for more content.

Credits

Community

If you want to discuss Goproxy China, or ask questions about it, simply post questions or ideas here.

Contributing

If you want to help build Goproxy China, simply follow this to send pull requests here.

License

This project is licensed under the Unlicense.

License can be found here.