(options ...ConfigLoaderOption)
| 72 | type ConfigLoaderOption func(*LoadOptions) |
| 73 | |
| 74 | func (lo *LoadOptions) Apply(options ...ConfigLoaderOption) { |
| 75 | for _, l := range options { |
| 76 | l(lo) |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | // readModelConfigsFromFile reads a config file that may contain either a single |
| 81 | // ModelConfig or an array of ModelConfigs. It tries to unmarshal as an array first, |