Documentation ¶ Index ¶ type Cmd func NewCmd(cmd string, args ...string) *Cmd func (c *Cmd) Run() int func (c *Cmd) RunWithStdin(in string) int func (c *Cmd) Stderr() string func (c *Cmd) Stdin() string func (c *Cmd) Stdout() string type Proc func NewProc(cmd string, args ...string) *Proc func (proc *Proc) ExitCode() int func (proc *Proc) GetPid() int func (proc *Proc) IsAlive() bool func (proc *Proc) Start() func (proc *Proc) Stderr() <-chan []byte func (proc *Proc) Stdout() <-chan []byte func (proc *Proc) Stop() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cmd ¶ type Cmd struct { // contains filtered or unexported fields } func NewCmd ¶ func NewCmd(cmd string, args ...string) *Cmd func (*Cmd) Run ¶ func (c *Cmd) Run() int func (*Cmd) RunWithStdin ¶ func (c *Cmd) RunWithStdin(in string) int func (*Cmd) Stderr ¶ func (c *Cmd) Stderr() string func (*Cmd) Stdin ¶ func (c *Cmd) Stdin() string func (*Cmd) Stdout ¶ func (c *Cmd) Stdout() string type Proc ¶ type Proc struct { sync.Mutex // contains filtered or unexported fields } func NewProc ¶ func NewProc(cmd string, args ...string) *Proc func (*Proc) ExitCode ¶ func (proc *Proc) ExitCode() int func (*Proc) GetPid ¶ func (proc *Proc) GetPid() int func (*Proc) IsAlive ¶ func (proc *Proc) IsAlive() bool func (*Proc) Start ¶ func (proc *Proc) Start() func (*Proc) Stderr ¶ func (proc *Proc) Stderr() <-chan []byte func (*Proc) Stdout ¶ func (proc *Proc) Stdout() <-chan []byte func (*Proc) Stop ¶ func (proc *Proc) Stop() Source Files ¶ View all Source files proc.go Click to show internal directories. Click to hide internal directories.