SetFromOS sets all our IO to current os.Std*
()
| 30 | |
| 31 | // SetFromOS sets all our IO to current os.Std* |
| 32 | func (st *StdIO) SetFromOS() { |
| 33 | st.Out, st.Err, st.In = os.Stdout, os.Stderr, os.Stdin |
| 34 | } |
| 35 | |
| 36 | // SetAll sets all our IO from given args |
| 37 | func (st *StdIO) SetAll(out, err io.Writer, in io.Reader) { |