// loadConfig reads in the config file with configName being the name of the file (without suffix)
// and configType being "yml" or "json".
loadConfig reads in the config file with configName being the name of the file (without suffix)
and configType being "yml" or "json".
// loadConfig reads in the config file with configName being the name of the file ( without suffix ) // and configType being " yml " or " json " .
func loadConfig(configName string, configType string) error {
	viper.SetConfigName(configName)
	viper.SetConfigType(configType)
	err := viper.ReadInConfig()
	if err != nil {
		return fmt.Errorf("cannot read configuration file: %s\n", err)
	}
	return nil
}
func loadConfig ( configName string , configType string ) error { viper . SetConfigName ( configName ) viper . SetConfigType ( configType ) err := viper . ReadInConfig ( ) if err != nil { return fmt . Errorf ( " \n " , err ) } return nil }
loadConfig reads in the config file with configName being the name of the file (without suffix)
and configType being "yml" or "json".
loadConfig reads in the config file with configName being the name of the file ( without suffix ) and configType being " yml " or " json " .