goinstall

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const InstallMethod = "go-install"

Variables

This section is empty.

Functions

func DefaultVersionResolverConfig

func DefaultVersionResolverConfig(installParams any) (string, any, error)

func IsInstallMethod

func IsInstallMethod(method string) bool

Types

type Installer

type Installer struct {
	// contains filtered or unexported fields
}

func NewInstaller

func NewInstaller(cfg InstallerParameters) Installer

func (Installer) InstallTo

func (i Installer) InstallTo(version, destDir string) (string, error)

type InstallerParameters

type InstallerParameters struct {
	Module     string   `json:"module" yaml:"module" mapstructure:"module"`
	Entrypoint string   `json:"entrypoint" yaml:"entrypoint" mapstructure:"entrypoint"`
	LDFlags    []string `json:"ldflags" yaml:"ldflags" mapstructure:"ldflags"`
}

Jump to

Keyboard shortcuts

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