MCPcopy
hub / github.com/pterm/pterm / PrefixPrinter

Struct PrefixPrinter

prefix_printer.go:87–98  ·  view source on GitHub ↗

PrefixPrinter is the printer used to print a Prefix.

Source from the content-addressed store, hash-verified

85
86// PrefixPrinter is the printer used to print a Prefix.
87type PrefixPrinter struct {
88 Prefix Prefix
89 Scope Scope
90 MessageStyle *Style
91 Fatal bool
92 ShowLineNumber bool
93 LineNumberOffset int
94 Writer io.Writer
95 // If Debugger is true, the printer will only print if PrintDebugMessages is set to true.
96 // You can change PrintDebugMessages with EnableDebugMessages and DisableDebugMessages, or by setting the variable itself.
97 Debugger bool
98}
99
100// WithPrefix adds a custom prefix to the printer.
101func (p PrefixPrinter) WithPrefix(prefix Prefix) *PrefixPrinter {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected