viper-app/internal/config/global.go

17 lines
228 B
Go
Raw Normal View History

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