toolchain

package
v0.0.0-...-dc6f9f8 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoBuild

type GoBuild struct {
	Go      *GoToolchain `ko:"name=go"`
	PkgPath string       `ko:"name=pkg"`
}

func (*GoBuild) Task

func (gb *GoBuild) Task(after ...*koos.GoTask) *koos.GoTask

type GoClean

type GoClean struct {
	Go      *GoToolchain `ko:"name=go"`
	PkgPath string       `ko:"name=pkg"`
}

func (*GoClean) Task

func (gc *GoClean) Task(after ...*koos.GoTask) *koos.GoTask

type GoInstall

type GoInstall struct {
	Go      *GoToolchain `ko:"name=go"`
	PkgPath string       `ko:"name=pkg"`
}

func (*GoInstall) Task

func (gi *GoInstall) Task(after ...*koos.GoTask) *koos.GoTask

type GoToolchain

type GoToolchain struct {
	GOROOT string   `ko:"name=GOROOT"`
	GOPATH []string `ko:"name=GOPATH"`
	KOPATH []string `ko:"name=KOPATH"`
	Binary string   `ko:"name=binary"`
}

func NewGoToolchain

func NewGoToolchain() *GoToolchain

func (*GoToolchain) BinaryBuildPath

func (x *GoToolchain) BinaryBuildPath(pkg string) string

func (*GoToolchain) BinaryInstallPath

func (x *GoToolchain) BinaryInstallPath(pkg string) string

func (*GoToolchain) Env

func (x *GoToolchain) Env() []string

func (*GoToolchain) PkgDir

func (x *GoToolchain) PkgDir(pkgPath string) string

PkgDir returns the directory containing the given package path. If will take the first element of the KOPATH, GOPATH that contains such a package.

func (*GoToolchain) PkgRoots

func (x *GoToolchain) PkgRoots() []string

PkgRoots returns all source folders that may contain packages.

Jump to

Keyboard shortcuts

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