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"` }
type GoClean ¶
type GoClean struct { Go *GoToolchain `ko:"name=go"` PkgPath string `ko:"name=pkg"` }
type GoInstall ¶
type GoInstall struct { Go *GoToolchain `ko:"name=go"` PkgPath string `ko:"name=pkg"` }
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.
Click to show internal directories.
Click to hide internal directories.