confighelper provides additional feature to viper to support AutomativEnv without having any config file.
import "github.com/netbookai/confighelper"
//in you config handling code, call BindEnvs function and pass your struct object
configObj := Config{}
err := confighelper.BindEnvs(configObj)
//now this will work perfectly fine without having any empty config file
viper.AutomaticEnv()