PrefixPrinter is the printer used to print a Prefix.
| 85 | |
| 86 | // PrefixPrinter is the printer used to print a Prefix. |
| 87 | type 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. |
| 101 | func (p PrefixPrinter) WithPrefix(prefix Prefix) *PrefixPrinter { |
nothing calls this directly
no outgoing calls
no test coverage detected