package main import ( "context" "file_upload/backend/app" "file_upload/backend/global" "file_upload/backend/simple_zap" ) func init() { err := global.SetupSetting() if err != nil { simple_zap.WithCtx(context.Background()).Sugar().Warn(err) return } global.SetupMongo() //global.SetupRedisLink() } func main() { err := app.InitRouter() if err != nil { simple_zap.WithCtx(context.Background()).Sugar().Warn(err) return } }