WithDebugger returns a new Printer with specific Debugger value. If Debugger is true, the printer will only print if PrintDebugMessages is set to true. You can change PrintDebugMessages with EnableDebugMessages and DisableDebugMessages, or by setting the variable itself.
(b ...bool)
| 134 | // If Debugger is true, the printer will only print if PrintDebugMessages is set to true. |
| 135 | // You can change PrintDebugMessages with EnableDebugMessages and DisableDebugMessages, or by setting the variable itself. |
| 136 | func (p PrefixPrinter) WithDebugger(b ...bool) *PrefixPrinter { |
| 137 | p.Debugger = internal.WithBoolean(b) |
| 138 | return &p |
| 139 | } |
| 140 | |
| 141 | // WithLineNumberOffset can be used to exclude a specific amount of calls in the call stack. |
| 142 | // If you make a wrapper function for example, you can set this to one. |