// initConfig reads in config file and ENV variables if set.
initConfig reads in config file and ENV variables if set.
// initConfig reads in config file and ENV variables if set .
func initConfig() {
	viper.SetConfigFile(viper.GetString("config"))
	viper.SetConfigType("yaml")
	viper.SetEnvPrefix("NEO")
	viper.AutomaticEnv() 
	if err := viper.ReadInConfig(); err == nil {
		logrus.Info("Using config file:", viper.ConfigFileUsed())
	}
	if viper.GetBool("verbose") {
		logrus.SetLevel(logrus.DebugLevel)
	} else {
		logrus.SetLevel(logrus.InfoLevel)
	}
	logrus.Debugf("Got configuration: %+v", viper.AllSettings())
}
func initConfig ( ) { viper . SetConfigFile ( viper . GetString ( " " ) ) viper . SetConfigType ( " " ) viper . SetEnvPrefix ( " " ) viper . AutomaticEnv ( ) if err := viper . ReadInConfig ( ) ; err == nil { logrus . Info ( " " , viper . ConfigFileUsed ( ) ) } if viper . GetBool ( " " ) { logrus . SetLevel ( logrus . DebugLevel ) } else { logrus . SetLevel ( logrus . InfoLevel ) } logrus . Debugf ( " " , viper . AllSettings ( ) ) }
initConfig reads in config file and ENV variables if set.
initConfig reads in config file and ENV variables if set .
// read in environment variables that match // If a config file is found, read it in.