GithubHelp home page GithubHelp logo

hhy5277 / goproxy.cn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from goproxy/goproxy.cn

0.0 1.0 0.0 9.17 MB

The most trusted Go module proxy in China.

Home Page: https://goproxy.cn

License: The Unlicense

Go 100.00%

goproxy.cn's Introduction

English简体中文

Goproxy China

The most trusted Go module proxy in China.

39C6C4A2-AF08-4B00-915D-2FCA96767E16

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.

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! ;-)

Credits

FAQ

Q: Why create Goproxy China?

A: 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.

Q: Is it safe to use Goproxy China?

A: 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 has supported proxying checksum databases.

Q: Is Goproxy China legal in China?

A: 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.

Q: Why not use the proxy.golang.org?

A: 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.

Usage

Although the following content only explains how to set GOPROXY, but we also recommend that you set GO111MODULE to on instead of auto when you are working with Go modules.

Go 1.13 and above (RECOMMENDED)

Open your terminal and execute

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

done.

macOS or Linux

Open your terminal and execute

$ export GOPROXY=https://goproxy.cn

or

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

done.

Windows

Open your PowerShell and execute

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 "GOPROXY"
7. Choose the "Variable value" input bar, type in "https://goproxy.cn"
8. Click the "OK" button

done.

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.

goproxy.cn's People

Contributors

aofei avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.