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)
| 173 | // caller wants to log debug messages from the [Reader]. By default, no debug |
| 174 | // function is set and the logs are not written. |
| 175 | func WithDebugFunc(debugFunc DebugFunc) ReaderOption { |
| 176 | return &debugFuncOption{debugFunc: debugFunc} |
| 177 | } |
| 178 | |
| 179 | type debugFuncOption struct { |
| 180 | debugFunc DebugFunc |
no outgoing calls
no test coverage detected
searching dependent graphs…