SetErr sets the destination for error messages. If newErr is nil, os.Stderr is used.
(newErr io.Writer)
| 300 | // SetErr sets the destination for error messages. |
| 301 | // If newErr is nil, os.Stderr is used. |
| 302 | func (c *Command) SetErr(newErr io.Writer) { |
| 303 | c.errWriter = newErr |
| 304 | } |
| 305 | |
| 306 | // SetIn sets the source for input data |
| 307 | // If newIn is nil, os.Stdin is used. |
no outgoing calls