Home / Golang modules

Golang mirror in Iran

Free Golang module mirror and GOPROXY for Go developers in Iran — keep go mod download and go build stable without proxy.golang.org.

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

Full golang guide · repository.rasanegaar.com

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.

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/.