download

package
v0.11.10 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Content managed by Project Forge, see [projectforge.md] for details.

Content managed by Project Forge, see [projectforge.md] for details.

Index

Constants

View Source
const (
	ModeServer  = "server"
	ModeDesktop = "desktop"
	ModeMobile  = "mobile"

	OSAIX       = "aix"
	OSAndroid   = "android"
	OSDragonfly = "dragonfly"
	OSFreeBSD   = "freebsd"
	OSIllumos   = "illumos"
	OSIOS       = "ios"
	OSJS        = "js"
	OSLinux     = "linux"
	OSMac       = "darwin"
	OSNetBSD    = "netbsd"
	OSOpenBSD   = "openbsd"
	OSPlan9     = "plan9"
	OSSolaris   = "solaris"
	OSWindows   = "windows"

	ArchAMD64        = "amd64"
	ArchARM64        = "arm64"
	ArchARMV5        = "armv5"
	ArchARMV6        = "armv6"
	ArchARMV7        = "armv7"
	Arch386          = "386"
	ArchMIPS64Hard   = "mips64_hardfloat"
	ArchMIPS64LEHard = "mips64le_hardfloat"
	ArchMIPS64LESoft = "mips64le_softfloat"
	ArchMIPS64Soft   = "mips64_softfloat"
	ArchMIPSHard     = "mips_hardfloat"
	ArchMIPSLEHard   = "mipsle_hardfloat"
	ArchMIPSLESoft   = "mipsle_softfloat"
	ArchMIPSSoft     = "mips_softfloat"
	ArchLoong64      = "loong64"
	ArchPPC64        = "ppc64"
	ArchPPC64LE      = "ppc64le"
	ArchRISCV64      = "riscv64"
	ArchS390X        = "s390x"
	ArchUniversal    = "all"
	ArchWASM         = "wasm"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	URL  string `json:"url"`
	Mode string `json:"mode"`
	OS   string `json:"os"`
	Arch string `json:"arch"`
}

func (*Link) ArchString added in v0.10.0

func (l *Link) ArchString() string

func (*Link) OSIcon

func (l *Link) OSIcon() string

func (*Link) OSString

func (l *Link) OSString() string
type Links []*Link
func GetLinks(version string) Links

func (Links) Get

func (l Links) Get(mode string, os string, arch string) *Link

func (Links) GetByModes

func (l Links) GetByModes(modes ...string) Links

func (Links) GetByOS

func (l Links) GetByOS(os string) Links

Jump to

Keyboard shortcuts

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