Error writes a log to the writer provided.
(wtr io.Writer, header string, lines ...string)
| 62 | |
| 63 | // Error writes a log to the writer provided. |
| 64 | func Error(wtr io.Writer, header string, lines ...string) { |
| 65 | _, _ = fmt.Fprint(wtr, cliMessage{ |
| 66 | Style: DefaultStyles.Error, |
| 67 | Prefix: "ERROR: ", |
| 68 | Header: header, |
| 69 | Lines: lines, |
| 70 | }.String()) |
| 71 | } |
| 72 | |
| 73 | // Errorf writes a formatted log to the writer provided. |
| 74 | func Errorf(wtr io.Writer, fmtStr string, args ...interface{}) { |
no test coverage detected