WithStdout sets the pipe's standard output to the writer w, instead of the default [os.Stdout].
(w io.Writer)
| 1010 | // WithStdout sets the pipe's standard output to the writer w, instead of the |
| 1011 | // default [os.Stdout]. |
| 1012 | func (p *Pipe) WithStdout(w io.Writer) *Pipe { |
| 1013 | p.stdout = w |
| 1014 | return p |
| 1015 | } |
| 1016 | |
| 1017 | // WriteFile writes the pipe's contents to the file path, truncating it if it |
| 1018 | // exists, and returns the number of bytes successfully written, or an error. |
no outgoing calls