func LoadFile(filename string) (*Config, error) {
	content, err := ioutil.ReadFile(filename)
	if err != nil {
		return nil, err
	}
	cfg, err := Load(string(content))
	if err != nil {
		return nil, errors.Wrapf(err, "parsing YAML file %s", filename)
	}
	resolveFilepaths(filepath.Dir(filename), cfg)
	return cfg, nil
}
func LoadFile(filename string) (*Config, error) {
	content, err := ioutil.ReadFile(filename)
	if err != nil {
		return nil, err
	}
	cfg, err := Load(string(content))
	if err != nil {
		return nil, errors.Wrapf(err, "parsing YAML file %s", filename)
	}
	resolveFilepaths(filepath.Dir(filename), cfg)
	return cfg, nil
}
func LoadFile ( filename string ) ( * Config , error ) { content , err := ioutil . ReadFile ( filename ) if err != nil { return nil , err } cfg , err := Load ( string ( content ) ) if err != nil { return nil , errors . Wrapf ( err , " " , filename ) } resolveFilepaths ( filepath . Dir ( filename ) , cfg ) return cfg , nil }
// LoadFile parses the given YAML file into a Config.
LoadFile parses the given YAML file into a Config .