// StoreConfig - Stores config into file
Stores config into file
// StoreConfig - Stores config into file
func StoreConfig(path string, conf *Config) error {
	confBytes, err := yaml.Marshal(conf)
	if err != nil {
		return err
	}
	if err := ioutil.WriteFile(path, confBytes, os.ModePerm); err != nil {
		return err
	}
	return nil
}
func StoreConfig ( path string , conf * Config ) error { confBytes , err := yaml . Marshal ( conf ) if err != nil { return err } if err := ioutil . WriteFile ( path , confBytes , os . ModePerm ) ; err != nil { return err } return nil }
Stores config into file
Stores config into file