goCMD

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Arch = map[string][]string{
	"aix":       {"ppc64"},
	"android":   {"386", "amd64", "arm", "arm64"},
	"darwin":    {"amd64", "arm64"},
	"dragonfly": {"amd64"},
	"freebsd":   {"386", "amd64", "arm", "arm64"},
	"illumos":   {"amd64"},
	"js":        {"wasm"},
	"linux":     {"386", "amd64", "arm", "arm64", "mips", "mips64", "mips64le", "mipsle", "ppc64", "ppc64le", "riscv64", "s390x"},
	"netbsd":    {"386", "amd64", "arm", "arm64"},
	"openbsd":   {"386", "amd64", "arm", "arm64", "mips64"},
	"plan9":     {"386", "amd64", "arm"},
	"solaris":   {"amd64"},
	"windows":   {"386", "amd64", "arm", "arm64"},
}

Functions

func DownloadMod added in v1.1.9

func DownloadMod() *exec.Cmd

Types

type BuildCommand

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

func NewBuilder

func NewBuilder(target string) BuildCommand

func (BuildCommand) Exec

func (c BuildCommand) Exec() *exec.Cmd

func (BuildCommand) Ldflags

func (c BuildCommand) Ldflags(value string) BuildCommand

func (BuildCommand) OutputName

func (c BuildCommand) OutputName(name string) BuildCommand

func (BuildCommand) ProductionLdflags

func (c BuildCommand) ProductionLdflags() BuildCommand

func (BuildCommand) Run

func (c BuildCommand) Run() ([]byte, error)

func (BuildCommand) TrimPath

func (c BuildCommand) TrimPath() BuildCommand

Jump to

Keyboard shortcuts

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