Documentation ¶
Overview ¶
Package pkg provides a package interfacing API using the go build libraries to provide high level functions that simplify and running building processes.
Index ¶
- func GetAllPackageLists(pkgnames []string) ([]string, error)
- func GetPackageDir(pkgname string) (string, error)
- func GetPackageLists(pkgname string) ([]string, error)
- func GoDeps(targetdir string) error
- func GoRun(cmd string) string
- func Gobuild(dir, name string, args []string) error
- func GobuildArgs(args []string) error
- func RunBin(binfile string, args []string, done, stopped func()) chan bool
- func RunCMD(cmds []string, done func()) chan bool
- func RunGo(gofile string, args []string, done, stopped func()) chan bool
- func SanitizeDuplicates(b []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllPackageLists ¶
GetAllPackageLists retrieves a set of packages directory and those of its dependencies
func GetPackageDir ¶
GetPackageDir returns the directory of a package path from the go src dir.
func GetPackageLists ¶
GetPackageLists retrieves a packages directory and those of its dependencies
func Gobuild ¶
Gobuild runs the build process against a directory, using a giving name for the build file. Returns a non-nil error if it fails.
func GobuildArgs ¶
GobuildArgs runs the build process against a directory, using the giving arguments. Returns a non-nil error if it fails.
func RunCMD ¶
RunCMD runs the a set of commands from a list while skipping any one-length command, panics if it gets an empty lists
func SanitizeDuplicates ¶
SanitizeDuplicates cleans out all duplicates
Types ¶
This section is empty.