func LoadFiles(paths ...string) (*Config, error) { merger := cfgutil.NewCollector(nil, configOpts...) for _, path := range paths { err := merger.Add(yaml.NewConfigWithFile(path, configOpts...)) if err != nil { return nil, err } } return fromConfig(merger.Config()), nil }
func newFlagValue( cfg *ucfg.Config, opts []ucfg.Option, loader func(string) (*ucfg.Config, error, error), ) *FlagValue { return &FlagValue{ collector: cfgutil.NewCollector(cfg, opts...), loader: loader, } }