config/config.go
func FromFile(path string) (*Config, error) {
	c, err := ioutil.ReadFile(path)
	if err != nil {
		return nil, errors.Wrap(err, "from file: "+path)
	}

	config, err := Parse(string(c))
	if err != nil {
		return nil, errors.Wrap(err, "from file: "+path)
	}
	return config, nil
}
func FromFile(path string) (*Config, error) {
	c, err := ioutil.ReadFile(path)
	if err != nil {
		return nil, errors.Wrap(err, "from file: "+path)
	}

	config, err := Parse(string(c))
	if err != nil {
		return nil, errors.Wrap(err, "from file: "+path)
	}
	return config, nil
}
func FromFile ( path string ) ( * Config , error ) { c , err := ioutil . ReadFile ( path ) if err != nil { return nil , errors . Wrap ( err , " " + path ) } config , err := Parse ( string ( c ) ) if err != nil { return nil , errors . Wrap ( err , " " + path ) } return config , nil }
// FromFile reads the configuration file at the given path and returns a new
// Config struct with the data populated.
FromFile reads the configuration file at the given path and returns a new Config struct with the data populated .