detect

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileAssetRegex

func CompileAssetRegex(expr string) (*regexp.Regexp, error)

func IsKnownGOOS

func IsKnownGOOS(value string) bool

func SelectableReleaseAssets

func SelectableReleaseAssets(assets []string) []string

Types

type Detector

type Detector interface {
	Detect(assets []string) (string, []string, error)
}

func NewAllDetector

func NewAllDetector() Detector

func NewAssetDetector

func NewAssetDetector(asset string, anti bool, re *regexp.Regexp) Detector

func NewChain

func NewChain(detectors []Detector, system Detector) Detector

func NewSystemDetector

func NewSystemDetector(goos, goarch string) (Detector, error)

func NewSystemDetectorWithLibc

func NewSystemDetectorWithLibc(goos, goarch, libc string) (Detector, error)

Jump to

Keyboard shortcuts

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