install

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromURL

func FromURL(url, destDir, binaryName string) error

FromURL downloads an artifact from the given URL and extracts the binary into destDir with the given binaryName. Supports .tar.gz and .zip archives, as well as raw binaries.

func InferArtifactFilename

func InferArtifactFilename(name string) string

InferArtifactFilename returns the expected artifact filename for the current platform. It follows the GoReleaser naming convention: {name}_{OS}_{arch}.{ext} Darwin uses "all" for universal binaries (matching GoReleaser's universal_binaries config).

func InferGitHubReleaseBase

func InferGitHubReleaseBase(source, version string) string

InferGitHubReleaseBase returns the base URL for a GitHub release. source can be a full URL (https://github.com/owner/repo) or "owner/repo" format. version can be with or without a "v" prefix — it will be normalized to include one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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