pkg

package
v0.0.0-...-6d3478e Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2018 License: MIT Imports: 10 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllPackageLists

func GetAllPackageLists(pkgnames []string) ([]string, error)

GetAllPackageLists retrieves a set of packages directory and those of its dependencies

func GetPackageDir

func GetPackageDir(pkgname string) (string, error)

GetPackageDir returns the directory of a package path from the go src dir.

func GetPackageLists

func GetPackageLists(pkgname string) ([]string, error)

GetPackageLists retrieves a packages directory and those of its dependencies

func GoDeps

func GoDeps(targetdir string) error

GoDeps calls go get for specific package

func GoRun

func GoRun(cmd string) string

GoRun runs the runs a command

func Gobuild

func Gobuild(dir, name string, args []string) error

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

func GobuildArgs(args []string) error

GobuildArgs runs the build process against a directory, using the giving arguments. Returns a non-nil error if it fails.

func RunBin

func RunBin(binfile string, args []string, done, stopped func()) chan bool

RunBin runs the generated binary file with the arguments expected

func RunCMD

func RunCMD(cmds []string, done func()) chan bool

RunCMD runs the a set of commands from a list while skipping any one-length command, panics if it gets an empty lists

func RunGo

func RunGo(gofile string, args []string, done, stopped func()) chan bool

RunGo runs the generated binary file with the arguments expected

func SanitizeDuplicates

func SanitizeDuplicates(b []string) []string

SanitizeDuplicates cleans out all duplicates

Types

This section is empty.

Jump to

Keyboard shortcuts

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