// GenerateConfig - Makes default config in path
Makes default config in path
// GenerateConfig - Makes default config in path
func GenerateConfig(path string) error {
	conf := Config{
		Logger: logger.ConfLogger{
			Formatter:    "text",
			Level:        "info",
			ReportCaller: false,
		},
		Storage: storage.ConfStorage{
			SQLite: &storage.ConfSQLiteDataBase{
				Path: "db.sqlite",
			},
		},
	}
	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 GenerateConfig ( path string ) error { conf := Config { Logger : logger . ConfLogger { Formatter : " " , Level : " " , ReportCaller : false , } , Storage : storage . ConfStorage { SQLite : & storage . ConfSQLiteDataBase { Path : " " , } , } , } confBytes , err := yaml . Marshal ( conf ) if err != nil { return err } if err := ioutil . WriteFile ( path , confBytes , os . ModePerm ) ; err != nil { return err } return nil }
Makes default config in path
Makes default config in path