Validator is an optional interface for cross-field or business-rule validation. It is called after defaults have been applied and struct tag validation has passed, so implementations can assume fields are individually valid and defaulted.
| 14 | // validation has passed, so implementations can assume fields are individually |
| 15 | // valid and defaulted. |
| 16 | type Validator interface { |
| 17 | Validate() error |
| 18 | } |
| 19 | |
| 20 | // Load reads a TOML configuration file at path and returns the validated |
| 21 | // result. Returns the zero value of T on file-read errors; delegates all |
no outgoing calls
no test coverage detected