package global func InitGlobal() { if err := initDB(); err != nil { panic(err) } if err := initLog(); err != nil { panic(err) } }