build

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: Apache-2.0 Imports: 28 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(args []string, conf *Config)

func DefaultAppExt

func DefaultAppExt() string

func Do

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

func ParseArgs added in v0.3.0

func ParseArgs(args []string, swflags map[string]bool) (flags, patterns []string, verbose bool)

func SkipFlagArgs added in v0.3.0

func SkipFlagArgs(args []string) int

Types

type Config

type Config struct {
	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
}

func NewDefaultConf

func NewDefaultConf(mode Mode) *Config

type Mode

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

Directories

Path Synopsis
_overlay
net/textproto
Package textproto implements generic support for text-based request/response protocols in the style of HTTP, NNTP, and SMTP.
Package textproto implements generic support for text-based request/response protocols in the style of HTTP, NNTP, and SMTP.

Jump to

Keyboard shortcuts

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