Options loops through the given [ReaderOption] functions and applies them to the [Reader].
(opts ...ReaderOption)
| 35 | // Options loops through the given [ReaderOption] functions and applies them to |
| 36 | // the [Reader]. |
| 37 | func (r *Reader) Options(opts ...ReaderOption) { |
| 38 | for _, opt := range opts { |
| 39 | opt.ApplyToReader(r) |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | // WithDebugFunc sets the debug function to be used by the [Reader]. If set, |
| 44 | // this function will be called with debug messages. This can be useful if the |
no test coverage detected