WithValidators changes the validators of Koanf.
(validators ...Validator)
| 66 | |
| 67 | // WithValidators changes the validators of Koanf. |
| 68 | func WithValidators(validators ...Validator) Option { |
| 69 | return func(option *KoanfAdapter) { |
| 70 | option.validators = validators |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | // NewConfig creates a new *KoanfAdapter. |
| 75 | func NewConfig(options ...Option) (*KoanfAdapter, error) { |
no outgoing calls