MCPcopy Create free account
hub / github.com/coder/slog / render

Function render

internal/entryhuman/entry.go:45–51  ·  view source on GitHub ↗
(w io.Writer, st lipgloss.Style, s string)

Source from the content-addressed store, hash-verified

43)
44
45func render(w io.Writer, st lipgloss.Style, s string) string {
46 if shouldColor(w) {
47 ss := st.Render(s)
48 return ss
49 }
50 return s
51}
52
53func reset(w io.Writer, termW io.Writer) {
54 if shouldColor(termW) {

Callers 1

FmtMethod · 0.85

Calls 1

shouldColorFunction · 0.85

Tested by

no test coverage detected