修复在线修改系统配置的bug
This commit is contained in:
@@ -36,6 +36,7 @@ func Viper(path ...string) *viper.Viper {
|
||||
|
||||
v := viper.New()
|
||||
v.SetConfigFile(config)
|
||||
v.SetConfigType("yaml")
|
||||
err := v.ReadInConfig()
|
||||
if err != nil {
|
||||
panic(fmt.Errorf("Fatal error config file: %s \n", err))
|
||||
|
||||
Reference in New Issue
Block a user