viper-app/internal/model/global.go

17 lines
233 B
Go
Raw Normal View History

2023-02-03 16:18:31 +08:00
package model
var (
// Conf 全局配置 通过 config.Conf 引用
Conf = new(Configuration)
//DataDBCli *db.Client
)
func GetConfig() *Configuration {
return Conf
}
//func GetDataDBCli() *db.Client {
// return DataDBCli
//}