Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCmdTerminated = errors.New("command terminated")
)
Functions ¶
func Execute ¶
Execute is a concurrent wrapper around Go's os/exec Output() method. It runs a command, and returns its standard output as a byte slice. If a long-running command is being executed, it can easily be killed at any time using the terminate channel as the process is spawned in a Goroutine.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.