extend/config/config.go
@@ -1,8 +1,9 @@ package config import ( "github.com/spf13/viper" "log" "github.com/spf13/viper" ) type server struct { @@ -20,6 +21,8 @@ WebVersion string `mapstructure: "webVersion"` //web版本 ChannelCount string `mapstructure: "channelCount"` //通道个数 DiskCount string `mapstructure: "diskCount"` //硬盘个数 SysServerPort string `mapstructure: "SysServerPort"` } var Server = &server{}