优化全局变量
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package refs
|
||||
|
||||
import (
|
||||
redisTool "cutego/pkg/redispool"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/go-xorm/xorm"
|
||||
)
|
||||
|
||||
// X 全局DB
|
||||
var (
|
||||
SqlDB *xorm.Engine
|
||||
RedisDB *redisTool.RedisClient
|
||||
CoolGin *gin.Engine
|
||||
)
|
||||
Reference in New Issue
Block a user