This commit is contained in:
Bayberry Z 2017-06-08 02:29:42 +00:00 committed by GitHub
commit fe53af7f71

View file

@ -323,7 +323,7 @@ func init() {
viper.SetDefault("license", "apache")
}
func main() {
func initConfig() {
// Don't forget to read config either from cfgFile or from home directory!
if cfgFile != "" {
// Use config file from the flag.