Warn writes a log to the writer provided.
(wtr io.Writer, header string, lines ...string)
| 34 | |
| 35 | // Warn writes a log to the writer provided. |
| 36 | func Warn(wtr io.Writer, header string, lines ...string) { |
| 37 | _, _ = fmt.Fprint(wtr, cliMessage{ |
| 38 | Style: DefaultStyles.Warn, |
| 39 | Prefix: "WARN: ", |
| 40 | Header: header, |
| 41 | Lines: lines, |
| 42 | }.String()) |
| 43 | } |
| 44 | |
| 45 | // Warn writes a formatted log to the writer provided. |
| 46 | func Warnf(wtr io.Writer, fmtStr string, args ...interface{}) { |
no test coverage detected