mirror of
https://github.com/ZSCNetSupportDept/scheduler.git
synced 2025-10-28 20:45:05 +08:00
add 数据库 Web框架 初步 支持
This commit is contained in:
@@ -21,6 +21,7 @@ func Load() {
|
||||
File = viper.GetString("File")
|
||||
DB.Path = viper.GetString("DB.Path")
|
||||
//DB.Port = viper.GetString("DB.Port")
|
||||
DB.Type = viper.GetString("DB.Type")
|
||||
|
||||
err := check()
|
||||
if err != nil {
|
||||
@@ -42,5 +43,6 @@ func debugprint() {
|
||||
fmt.Printf("ListenPort=%v\n", ListenPort)
|
||||
fmt.Printf("File=%v\n", File)
|
||||
fmt.Printf("database path : %s\n", DB.Path)
|
||||
fmt.Printf("database type:%s\n", DB.Type)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user