goproxy.cn

goproxyMIT长期未更新

国内最受信任的 Go module 代理服务,帮开发者绕过网络限制,稳定高速地拉取 Go 依赖包。

The most trusted Go module proxy in China.

暂无版本7,074star398fork同步于 2026-11-10 11:33 UTC

怎么上手

由 README 提炼,执行前请确认
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
硬件要求按 README 说明

README 未说明,本项目是托管在线服务,无需本地硬件

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

国内可信的 Go module 代理服务,解决 golang.org/x 等模块拉取慢或不可达的问题

国内最受信任的 Go module 代理服务,帮开发者绕过网络限制,稳定高速地拉取 Go 依赖包。

核心能力

  • 完整实现 GOPROXY 协议,可直接作为 go 的模块源
  • 全球 CDN 加速,国内下载模块更快更稳
  • 缓存原始未修改模块,支持 sum.golang.org 校验
  • 由七牛云赞助的公益项目,已 ICP 备案

容易踩的坑

这是在线代理服务而非本地部署工具,想自建代理需改用 goproxy/goproxy 项目;GOPROXY 末尾的 ,direct 用于代理失败时回退直连,去掉后可能拉不到私有模块;非中国大陆用户 README 建议优先用 proxy.golang.org

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    English ∙ 简体中文

    Goproxy.cn

    The most trusted Go module proxy in China.

    Goproxy.cn has fully implemented the GOPROXY protocol. 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 globally CDN-accelerated Go module proxy for Gophers in China. Please subscribe to our real-time and historical data on system performance at status.goproxy.cn.

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

    Happy coding, Gophers! ;-)

    Usage

    Go 1.13 and above (RECOMMENDED)

    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.cn?

    Due to China's network restrictions, many Go modules in the ecosystem are inaccessible to Chinese Gophers, including the widely-used golang.org/x/... packages. Additionally, downloading modules from GitHub in mainland China can be slow. We created Goproxy.cn to help Chinese Gophers use Go modules more effectively. Since Goproxy.cn is globally CDN-accelerated, it can be used anywhere in the world.

    Is it safe to use Goproxy.cn?

    Absolutely. Like all Go module proxies, we cache modules in their original, unmodified state, ensuring complete integrity on our end. If you need additional verification, you can use the trusted checksum database sum.golang.org to verify that modules obtained from us remain untampered, as Goproxy.cn fully supports proxying checksum databases.

    Is Goproxy.cn legal in China?

    Goproxy.cn 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 proxy.golang.org?

    Since 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 proxy.golang.org, after all, it looks more official. Once you enter the mainland of China, we hope that you'll think of 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.cn and enthusiastic volunteers from our great Go community.

    Credits

    Sponsors

    As a community-driven open source project, Goproxy.cn is made possible by the generous support of our sponsors.

    Qiniu Cloud

    Qiniu Cloud is our primary sponsor, providing essential infrastructure including servers, object storage, and CDN services.

    DigitalOcean

    DigitalOcean provides servers for our Stats API, log analytics, and backup infrastructure to enhance availability.

    Atlassian

    Atlassian provides our Statuspage subscription, enabling us to maintain our system status page at status.goproxy.cn.

    Community

    If you have any questions or ideas about this project, feel free to discuss them here.

    Contributing

    If you would like to contribute to this project, please submit issues here or pull requests here.

    When submitting a pull request, please make sure its commit messages adhere to Conventional Commits 1.0.0.

    License

    This project is licensed under the MIT License.