Versions in this module Expand all Collapse all v1 v1.2.0 Jul 16, 2017 v1.1.0 Mar 26, 2017 Changes in this version + const INVALID_EXIT_CODE + func Build(packagePath string, args ...string) (compiledPath string, err error) + func BuildIn(gopath string, packagePath string, args ...string) (compiledPath string, err error) + func BuildWithEnvironment(packagePath string, env []string, args ...string) (compiledPath string, err error) + func CleanupBuildArtifacts() + func Exit(optionalExitCode ...int) *exitMatcher + func Interrupt() + func Kill() + func KillAndWait(timeout ...interface{}) + func Signal(signal os.Signal) + func Terminate() + func TerminateAndWait(timeout ...interface{}) + type Exiter interface + ExitCode func() int + type PrefixedWriter struct + func NewPrefixedWriter(prefix string, writer io.Writer) *PrefixedWriter + func (w *PrefixedWriter) Write(b []byte) (int, error) + type Session struct + Command *exec.Cmd + Err *gbytes.Buffer + Exited <-chan struct{} + Out *gbytes.Buffer + func Start(command *exec.Cmd, outWriter io.Writer, errWriter io.Writer) (*Session, error) + func (s *Session) Buffer() *gbytes.Buffer + func (s *Session) ExitCode() int + func (s *Session) Interrupt() *Session + func (s *Session) Kill() *Session + func (s *Session) Signal(signal os.Signal) *Session + func (s *Session) Terminate() *Session + func (s *Session) Wait(timeout ...interface{}) *Session