MCPcopy
hub / github.com/pocketbase/pocketbase / newErrWriter

Function newErrWriter

pocketbase.go:312–317  ·  view source on GitHub ↗

newErrWriter returns a red colored stderr writter.

()

Source from the content-addressed store, hash-verified

310
311// newErrWriter returns a red colored stderr writter.
312func newErrWriter() *coloredWriter {
313 return &coloredWriter{
314 w: os.Stderr,
315 c: color.New(color.FgRed),
316 }
317}
318
319// coloredWriter is a small wrapper struct to construct a [color.Color] writter.
320type coloredWriter struct {

Callers 1

NewWithConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…