build

package
v3.18.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Windows   = OS("windows")
	MacOS     = OS("darwin")
	Linux     = OS("linux")
	FreeBSD   = OS("freebsd")
	OpenBSD   = OS("openbsd")
	UnknownOS = OS("unknown")
)
View Source
const (
	X86         = Arch("386")
	Amd64       = Arch("amd64")
	Arm         = Arch("arm")
	Arm64       = Arch("arm64")
	Mips64      = Arch("mips64")
	Mips64LE    = Arch("mips64le")
	Mips        = Arch("mips")
	MipsLE      = Arch("mipsle")
	S390X       = Arch("s390x")
	UnknownArch = Arch("unknown")
)

Variables

This section is empty.

Functions

func GetSuffix

func GetSuffix(os OS, arch Arch) string

Types

type Arch

type Arch string

Arch is a GoArch value for CPU architecture.

func ParseArch

func ParseArch(rawArch string) Arch

type CachedTarget

type CachedTarget struct {
	Target
	*Output
}

func (*CachedTarget) BuildTo

func (t *CachedTarget) BuildTo(dir string) (*Output, error)

type EnvPath

type EnvPath string

func (EnvPath) Get

func (p EnvPath) Get() string

type GoTarget

type GoTarget struct {
	Source  string
	Target  string
	OS      OS
	Arch    Arch
	LdFlags []string
	ArmOpt  string
	MipsOpt string
	Tags    []string
}

func (*GoTarget) BuildTo

func (t *GoTarget) BuildTo(directory string) (*Output, error)

func (*GoTarget) Envs

func (t *GoTarget) Envs() []string

Envs returns the environment variables for this build.

type LazyPath

type LazyPath struct {
	*CachedTarget
}

func (*LazyPath) Get

func (p *LazyPath) Get() string

type OS

type OS string

OS is a GoOS value for target operating system.

func ParseOS

func ParseOS(rawOS string) OS

type Output

type Output struct {
	Generated string
}

type Path

type Path interface {
	Get() string
}

type PlainPath

type PlainPath string

func (PlainPath) Get

func (p PlainPath) Get() string

type ResourceTarget

type ResourceTarget struct {
	Source           Path
	Target           string
	OS               OS
	FixLineSeparator bool
}

func (*ResourceTarget) BuildTo

func (t *ResourceTarget) BuildTo(dir string) (*Output, error)

type SignTarget

type SignTarget struct {
	Passphrase string
	Source     Path
}

func (*SignTarget) BuildTo

func (so *SignTarget) BuildTo(dir string) (*Output, error)

type Target

type Target interface {
	BuildTo(directory string) (*Output, error)
}

type ZipTarget

type ZipTarget struct {
	Options []zip.Option
	Target  string
	Source  Path
}

func (*ZipTarget) BuildTo

func (zo *ZipTarget) BuildTo(dir string) (*Output, error)

Jump to

Keyboard shortcuts

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