buildtarget

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Runtime is the current runtime buildTarget

Functions

This section is empty.

Types

type Target

type Target struct {
	OS, Arch, Arm string
}

Target is a build target

func All

func All(build config.Build) (targets []Target)

All returns all valid build targets for a given build

func New

func New(goos, goarch, goarm string) Target

New builtarget

func (Target) Env

func (t Target) Env() []string

Env returns the current Target as environment variables

func (Target) PrettyString

func (t Target) PrettyString() string

PrettyString is a prettier version of the String method.

func (Target) String

func (t Target) String() string

Jump to

Keyboard shortcuts

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