MCPcopy
hub / github.com/pterm/pterm / WithShowLineNumber

Method WithShowLineNumber

prefix_printer.go:128–131  ·  view source on GitHub ↗

WithShowLineNumber sets if the printer should print the line number from where it's called in a go file.

(b ...bool)

Source from the content-addressed store, hash-verified

126
127// WithShowLineNumber sets if the printer should print the line number from where it's called in a go file.
128func (p PrefixPrinter) WithShowLineNumber(b ...bool) *PrefixPrinter {
129 p.ShowLineNumber = internal.WithBoolean(b)
130 return &p
131}
132
133// WithDebugger returns a new Printer with specific Debugger value.
134// If Debugger is true, the printer will only print if PrintDebugMessages is set to true.

Callers 3

mainFunction · 0.80

Calls 1

WithBooleanFunction · 0.92