MCPcopy Index your code
hub / github.com/coder/slog / reset

Function reset

internal/entryhuman/entry.go:53–57  ·  view source on GitHub ↗
(w io.Writer, termW io.Writer)

Source from the content-addressed store, hash-verified

51}
52
53func reset(w io.Writer, termW io.Writer) {
54 if shouldColor(termW) {
55 fmt.Fprintf(w, termenv.CSI+termenv.ResetSeq+"m")
56 }
57}
58
59func formatValue(v interface{}) (string, error) {
60 if vr, ok := v.(driver.Valuer); ok {

Callers 1

FmtMethod · 0.85

Calls 1

shouldColorFunction · 0.85

Tested by

no test coverage detected