OptionIsValid checks if a value is valid for a certain option
(option string, value any)
| 504 | |
| 505 | // OptionIsValid checks if a value is valid for a certain option |
| 506 | func OptionIsValid(option string, value any) error { |
| 507 | if validator, ok := optionValidators[option]; ok { |
| 508 | return validator(option, value) |
| 509 | } |
| 510 | |
| 511 | return nil |
| 512 | } |
| 513 | |
| 514 | // Option validators |
| 515 |
no outgoing calls
no test coverage detected