LoadFile returns a low-level "handler config" from the provided filename. If the config file doesn't contain a top-level JSON key of "handlerConfig" with boolean value true, the configuration is assumed to be a high-level "user config" file, and transformed into a low-level config.
(filename string)
| 478 | // with boolean value true, the configuration is assumed to be a high-level |
| 479 | // "user config" file, and transformed into a low-level config. |
| 480 | func LoadFile(filename string) (*Config, error) { |
| 481 | return load(filename, nil) |
| 482 | } |
| 483 | |
| 484 | // jsonFileImpl implements jsonconfig.File using a *bytes.Reader with |
| 485 | // the contents slurped into memory. |
no test coverage detected