buildtarget

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package buildtarget provides the utilities targeting build matrixes. TODO: probably this package should be removed and used only inside the build package

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