Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitAll ¶
func InitAll()
InitAll 执行项目整体的初始化 除了 router 路由信息都可以用 InitAll() 初始化
主体逻辑 // 加载配置 bootstrap.InitConfig() // 加载日志 bootstrap.InitLogger() // mysql初始化,初始化连接对象 bootstrap.InitDB() // 自动迁移数据库表 bootstrap.InitModel() bootstrap.InitRedis()
func InitConfig ¶
func InitConfig()
func InitDriver ¶
func InitDriver()
func InitLogger ¶
func InitLogger()
InitLogger 初始化 log 日志, 使用 zap 的原因是因为高性能 learn from [juejin.cn](https://juejin.cn/post/6971217119379718175)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.