feat: 读取不同环境配置文件

This commit is contained in:
Blizzard
2025-04-24 21:54:49 +08:00
parent 991f37b13a
commit 1de88e2dac
13 changed files with 155 additions and 32 deletions
+12
View File
@@ -0,0 +1,12 @@
package global
import (
"github.com/spf13/viper"
"sundynix-go/config"
)
// 全局变量 加载在内存中
var (
Viper *viper.Viper
Config *config.Server
)