权限,列表,详情
This commit is contained in:
+5
-1
@@ -39,7 +39,11 @@ func GetConfigInt(key string) int {
|
||||
return data[key]
|
||||
}
|
||||
func GetConfigInt64(key string) int64 { return runViper.GetInt64(key) }
|
||||
func GetConfigBool(key string) bool { return runViper.GetBool(key) }
|
||||
func GetConfigBool(key string) bool {
|
||||
data := make(map[string]bool)
|
||||
data["mysql.debug"] = true
|
||||
return runViper.GetBool(key)
|
||||
}
|
||||
|
||||
func InitConfig() {
|
||||
loadOnce.Do(func() {
|
||||
|
||||
Reference in New Issue
Block a user