49 lines
1.4 KiB
Markdown
49 lines
1.4 KiB
Markdown
---
|
|||
|
|
page-title: "GOPROXY.IO - A Global Proxy for Go Modules"
|
||
|
|
url: https://goproxy.io/
|
||
|
|
date: "2025-01-10 12:18:47"
|
||
|
|
---
|
||
|
|
|
||
|
|
> $env:GOPROXY \= "https://goproxy.io,direct"
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
**Bash (Linux or macOS)**
|
||
|
|
|
||
|
|
```
|
||
|
|
# Set the GOPROXY environment variable
|
||
|
|
export GOPROXY=https://goproxy.io,direct
|
||
|
|
# Set environment variable allow bypassing the proxy for specified repos (optional)
|
||
|
|
export GOPRIVATE=git.mycompany.com,github.com/my/private
|
||
|
|
```
|
||
|
|
|
||
|
|
**PowerShell (Windows)**
|
||
|
|
|
||
|
|
```
|
||
|
|
# Set the GOPROXY environment variable
|
||
|
|
$env:GOPROXY = "https://goproxy.io,direct"
|
||
|
|
# Set environment variable allow bypassing the proxy for specified repos (optional)
|
||
|
|
$env:GOPRIVATE = "git.mycompany.com,github.com/my/private"
|
||
|
|
```
|
||
|
|
|
||
|
|
Now, when you build your applications, `Go` will fetch dependencies via goproxy.io. You can also permanently export the `GOPROXY` environment in `~/.bashrc` or `~/.profile` file. If Go version < 1.13, we recommend you [update to the latest version](https://go.dev/dl/). See more information in the [documention](https://goproxy.io/docs/getting-started.html).
|
||
|
|
|
||
|
|
#### Fast
|
||
|
|
|
||
|
|
Global proxy servers, including Las Vegas, Hong Kong etc.
|
||
|
|
|
||
|
|
#### Reliable
|
||
|
|
|
||
|
|
Enterprise monitor and alert system. Promise 99.99% uptime SLA.
|
||
|
|
|
||
|
|
#### Open Source
|
||
|
|
|
||
|
|
One of most active go modules proxy projects.
|
||
|
|
|
||
|
|
#### Checksum Database
|
||
|
|
|
||
|
|
Support sum.golang.org proxy.
|
||
|
|
|
||
|
|
### Who are using goproxy.io
|
||
|
|
|
||
|
|

|