Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Arch = map[string][]string{
"aix": {"ppc64"},
"android": {"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 ¶
This section is empty.
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
Click to show internal directories.
Click to hide internal directories.