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 LoadFile(path string) (*Config, error) { c, err := yaml.NewConfigWithFile(path, ucfg.PathSep(".")) return fromConfig(c), err }
func LoadFile(path string) (*Config, error) { c, err := yaml.NewConfigWithFile(path, configOpts...) return fromConfig(c), err }