WithShowLineNumber sets if the printer should print the line number from where it's called in a go file.
(b ...bool)
| 126 | |
| 127 | // WithShowLineNumber sets if the printer should print the line number from where it's called in a go file. |
| 128 | func (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. |