MCPcopy Index your code
hub / github.com/pterm/pterm / SetDefaultOutput

Function SetDefaultOutput

print.go:16–19  ·  view source on GitHub ↗

SetDefaultOutput sets the default output of pterm.

(w io.Writer)

Source from the content-addressed store, hash-verified

14
15// SetDefaultOutput sets the default output of pterm.
16func SetDefaultOutput(w io.Writer) {
17 defaultWriter = w
18 color.SetOutput(w)
19}
20
21// Sprint formats using the default formats for its operands and returns the resulting string.
22// Spaces are added between operands when neither is a string.

Callers 8

setupStdoutCaptureFunction · 0.92
teardownStdoutCaptureFunction · 0.92
proxyToDevNullFunction · 0.92
TestFprintFunction · 0.92
TestFprintlnFunction · 0.92
TestFprintoFunction · 0.92
TestSetDefaultOutputFunction · 0.92

Calls

no outgoing calls

Tested by 8

setupStdoutCaptureFunction · 0.74
teardownStdoutCaptureFunction · 0.74
proxyToDevNullFunction · 0.74
TestFprintFunction · 0.74
TestFprintlnFunction · 0.74
TestFprintoFunction · 0.74
TestSetDefaultOutputFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…