build

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean added in v0.3.0

func Clean(patterns []string, conf *Config)

func DefaultAppExt

func DefaultAppExt(goos string) string

func IsCheckEnable added in v0.9.9

func IsCheckEnable() bool

func IsDbgEnabled added in v0.11.0

func IsDbgEnabled() bool

func IsDbgSymsEnabled added in v0.11.0

func IsDbgSymsEnabled() bool

func IsOptimizeEnabled added in v0.9.8

func IsOptimizeEnabled() bool

func IsRpathChangeEnabled added in v0.11.0

func IsRpathChangeEnabled() bool

func IsStdioNobuf added in v0.11.1

func IsStdioNobuf() bool

func IsTraceEnabled added in v0.11.0

func IsTraceEnabled() bool

func IsWasiThreadsEnabled added in v0.11.1

func IsWasiThreadsEnabled() bool

func WasmRuntime added in v0.11.1

func WasmRuntime() string

Types

type Config

type Config struct {
	Goos      string
	Goarch    string
	BinPath   string
	AppExt    string   // ".exe" on Windows, empty on Unix
	OutFile   string   // only valid for ModeBuild when len(pkgs) == 1
	RunArgs   []string // only valid for ModeRun
	Mode      Mode
	GenExpect bool // only valid for ModeCmpTest
	Verbose   bool
	Tags      string
}

func NewDefaultConf

func NewDefaultConf(mode Mode) *Config

type Mode

type Mode int
const (
	ModeBuild Mode = iota
	ModeInstall
	ModeRun
	ModeTest
	ModeCmpTest
	ModeGen
)

type Package added in v0.9.8

type Package = *aPackage

func Do

func Do(args []string, conf *Config) ([]Package, error)

Jump to

Keyboard shortcuts

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