collector

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: MIT Imports: 6 Imported by: ? 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

Index

Constants

View Source
const (
	// OriginalOfficialDownloadPageURL Golang official site download page URL
	OriginalOfficialDownloadPageURL = "https://golang.org/dl/"
	// OfficialDownloadPageURL Golang official site download page URL
	OfficialDownloadPageURL = "https://go.dev/dl/"
	// CNDownloadPageURL China mirror site download page URL
	CNDownloadPageURL = "https://golang.google.cn/dl/"
)

official collector

View Source
const (
	// AliYunDownloadPageURL Alibaba cloud mirror site URL
	AliYunDownloadPageURL = "https://mirrors.aliyun.com/golang/"
	// HUSTDownloadPageURL Huazhong University of Science and Technology mirror site URL
	HUSTDownloadPageURL = "https://mirrors.hust.edu.cn/golang/"
	// NJUDownloadPageURL Nanjing University mirror site URL
	NJUDownloadPageURL = "https://mirrors.nju.edu.cn/golang/"
)

Nginx fancyindex collector

View Source
const (
	// USTCDownloadPageURL University of Science and Technology of China mirror site URL
	USTCDownloadPageURL = "https://mirrors.ustc.edu.cn/golang/"
)

Nginx autoindex collector

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	// Name Collector name
	Name() string
	// StableVersions Return all stable versions
	StableVersions() (items []*version.Version, err error)
	// UnstableVersions Return all stable versions
	UnstableVersions() (items []*version.Version, err error)
	// ArchivedVersions Return all archived versions
	ArchivedVersions() (items []*version.Version, err error)
	// AllVersions Return all versions
	AllVersions() (items []*version.Version, err error)
}

Collector Version information collector

func NewCollector

func NewCollector(urls ...string) (c Collector, err error)

NewCollector Returns the first available collector instance official|https://go.dev/dl/,fancyindex|https://mirrors.aliyun.com/golang/,autoindex|https://mirrors.ustc.edu.cn/golang/

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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