WithDispatcher changes the default dispatcher of Koanf.
(dispatcher contract.Dispatcher)
| 59 | |
| 60 | // WithDispatcher changes the default dispatcher of Koanf. |
| 61 | func WithDispatcher(dispatcher contract.Dispatcher) Option { |
| 62 | return func(option *KoanfAdapter) { |
| 63 | option.dispatcher = dispatcher |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | // WithValidators changes the validators of Koanf. |
| 68 | func WithValidators(validators ...Validator) Option { |
no outgoing calls