Function
formatHeader
(buf *[]byte, lv Level, t time.Time)
Source from the content-addressed store, hash-verified
| 23 | } |
| 24 | |
| 25 | func formatHeader(buf *[]byte, lv Level, t time.Time) { |
| 26 | debug_string := lv.String() |
| 27 | *buf = append(*buf, '[') |
| 28 | *buf = append(*buf, debug_string...) |
| 29 | *buf = append(*buf, ']', ' ') |
| 30 | |
| 31 | hour, min, sec := t.Clock() |
| 32 | itoa(buf, hour, 2) |
| 33 | *buf = append(*buf, ':') |
| 34 | itoa(buf, min, 2) |
| 35 | *buf = append(*buf, ':') |
| 36 | itoa(buf, sec, 2) |
| 37 | *buf = append(*buf, ' ') |
| 38 | } |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…