featurebase/cmd.go
Matt Jaffee 176861d702 add embedded struct to contain io for commands
per @tgruben's suggestion
2017-03-17 16:43:04 -05:00

17 lines
246 B
Go

package pilosa
import "io"
type CmdIO struct {
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
}
func NewCmdIO(stdin io.Reader, stdout, stderr io.Writer) *CmdIO {
return &CmdIO{
Stdin: stdin,
Stdout: stdout,
Stderr: stderr,
}
}