Golang mirror — GOPROXY setup
https://mirror.rasanegaar.com/golang/
Recommended
go env -w GOPROXY=https://mirror.rasanegaar.com/golang,direct
Shell (session)
export GOPROXY=https://mirror.rasanegaar.com/golang,direct
Test
go mod download github.com/gin-gonic/gin@v1.9.1
What is the Rasanegaar Golang mirror?
Go and Golang refer to the same language. Modules are normally fetched via proxy.golang.org — from Iran, builds hit i/o timeout, connection refused and slow CI.
The golang mirror at Rasanegaar serves the same GOPROXY protocol on in-country infrastructure so your team stops depending on international paths.
- Drop-in replacement for
proxy.golang.org - Go 1.11+ module mode,
go mod, Docker and CI - No
go.modchanges — setGOPROXYonly GOPRIVATEfor private modules- Default
GOSUMDBstays enabled
CI/CD for Golang projects
GitLab CI
variables: GOPROXY: "https://mirror.rasanegaar.com/golang,direct"
GitHub Actions
- run: go env -w GOPROXY=https://mirror.rasanegaar.com/golang,direct
Dockerfile
ENV GOPROXY=https://mirror.rasanegaar.com/golang,direct
FAQ — golang mirror
Go vs Golang — same mirror?
Yes. Go and Golang are the same ecosystem; this mirror proxies all public modules.
How do I test the Golang mirror?
After setting GOPROXY, run go mod download github.com/gin-gonic/gin@v1.9.1. Mirror URL: mirror.rasanegaar.com/golang/.
Should I disable GOSUMDB?
No. Only change GOPROXY; keep checksum verification via sum.golang.org.
mirror vs repository hostname?
Both point at the same golang proxy: mirror.rasanegaar.com/golang/ and repository.rasanegaar.com/golang/.