func initializeConfigs() {
	// Loads default config, you just have to hard code it
	if err := config.Parse("build/config/config.yaml", cfg, true); err != nil {
		log.Fatalln(err)
	}

	if err := config.ReadLocalConfigs(cfg); err != nil {
		log.Fatalln(err)
	}

	config.SetConfig(cfg)
	g.CFG = cfg
	g.SecretKey = []byte(cfg.SecretKey)
}
// Initialization for config files in configs folder
Initialization for config files in configs folder
// Initialization for config files in configs folder
func initializeConfigs() {
	if err := config.Parse("build/config/config.yaml", cfg, true); err != nil {
		log.Fatalln(err)
	}
	if err := config.ReadLocalConfigs(cfg); err != nil {
		log.Fatalln(err)
	}
	config.SetConfig(cfg)
	g.CFG = cfg
	g.SecretKey = []byte(cfg.SecretKey)
}
func initializeConfigs ( ) { if err := config . Parse ( " " , cfg , true ) ; err != nil { log . Fatalln ( err ) } if err := config . ReadLocalConfigs ( cfg ) ; err != nil { log . Fatalln ( err ) } config . SetConfig ( cfg ) g . CFG = cfg g . SecretKey = [ ] byte ( cfg . SecretKey ) }
Initialization for config files in configs folder
Initialization for config files in configs folder
// Loads default config, you just have to hard code it