@@ -3,9 +3,12 @@ package main
import (
"fmt"
"sundynix-go/core"
"sundynix-go/global"
)
func main() {
cfg := core.Viper()
fmt.Println(cfg.DB)
//初始化viper
global.Viper = core.Viper()
fmt.Println(global.Config.Mysql)
fmt.Println(global.Config.Redis)
}
The note is not visible to the blocked user.