MCPcopy Create free account
hub / github.com/Cyinx/einx / formatHeader

Function formatHeader

slog/slog_utils.go:25–38  ·  view source on GitHub ↗
(buf *[]byte, lv Level, t time.Time)

Source from the content-addressed store, hash-verified

23}
24
25func 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}

Callers 1

doRunMethod · 0.85

Calls 2

itoaFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…