1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package pipeline import ( "io" ) type Cmd interface { CombinedOutput() ([]byte, error) Output() ([]byte, error) Run() error Start() error StderrPipe() (io.ReadCloser, error) StdinPipe() (io.WriteCloser, error) StdoutPipe() (io.ReadCloser, error) Wait() error }