PrintErr is a convenience method to Print to the defined Err output, fallback to Stderr if not set.
(i ...interface{})
| 1448 | |
| 1449 | // PrintErr is a convenience method to Print to the defined Err output, fallback to Stderr if not set. |
| 1450 | func (c *Command) PrintErr(i ...interface{}) { |
| 1451 | fmt.Fprint(c.ErrOrStderr(), i...) |
| 1452 | } |
| 1453 | |
| 1454 | // PrintErrln is a convenience method to Println to the defined Err output, fallback to Stderr if not set. |
| 1455 | func (c *Command) PrintErrln(i ...interface{}) { |