githubmirror

package
v1.5.153 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package githubmirror centralizes the GitHub download accelerator list shared by install.sh, self-update and the first-party extension downloaders.

Index

Constants

View Source
const Env = "GOLDER_MIRROR"

Env overrides the built-in mirror list: whitespace-separated URL prefixes, or "off"/"none" to disable mirror fallback.

Variables

View Source
var Defaults = []string{
	"https://ghfast.top/",
	"https://ghproxy.net/",
	"https://gh-proxy.com/",
	"https://gh.zwy.one/",
}

Defaults are community-run GitHub download accelerators. A mirror URL is the original GitHub URL prefixed by the accelerator (the gh-proxy convention). They are transport helpers only; every downloaded archive is still verified against a trusted checksum.

Functions

func Apply

func Apply(original string, prefixes []string) []string

Apply returns the direct URL followed by one URL for each mirror prefix. Only GitHub release URLs are mirrored; other HTTPS resources are returned unchanged.

func Prefixes

func Prefixes() []string

Prefixes resolves the mirror list: GOLDER_MIRROR when set, else Defaults.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL