func (conf *Config) LoadFromFile(file string) error {
        yamlFile, err := ioutil.ReadFile(file)
        if err == nil {
                err = yaml.Unmarshal(yamlFile, conf)
        }
        return err
}
// LoadFromFile return Config object according to a YAML file
LoadFromFile return Config object according to a YAML file
// LoadFromFile return Config object according to a YAML file
func (conf *Config) LoadFromFile(file string) error {
        yamlFile, err := ioutil.ReadFile(file)
        if err == nil {
                err = yaml.Unmarshal(yamlFile, conf)
        }
        return err
}
func ( conf * Config ) LoadFromFile ( file string ) error { yamlFile , err := ioutil . ReadFile ( file ) if err == nil { err = yaml . Unmarshal ( yamlFile , conf ) } return err }
LoadFromFile return Config object according to a YAML file
LoadFromFile return Config object according to a YAML file