WithDebugFunc sets the debug function to be used by the [Reader]. If set, this function will be called with debug messages. This can be useful if the caller wants to log debug messages from the [Reader]. By default, no debug function is set and the logs are not written.
(debugFunc DebugFunc)
| 45 | // caller wants to log debug messages from the [Reader]. By default, no debug |
| 46 | // function is set and the logs are not written. |
| 47 | func WithDebugFunc(debugFunc DebugFunc) ReaderOption { |
| 48 | return &debugFuncOption{debugFunc: debugFunc} |
| 49 | } |
| 50 | |
| 51 | type debugFuncOption struct { |
| 52 | debugFunc DebugFunc |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…