enterprise/cmd/enterprise.go

23 lines
322 B
Go

package main
import (
"enterprise/common/config"
"enterprise/common/global"
"enterprise/server"
"enterprise/worker"
)
func main() {
config.LoadServerConfig()
config.LoadAliPay()
global.InitGlobal()
if err := worker.Init(); err != nil {
panic(err)
}
if err := server.Start(); err != nil {
panic(err)
}
}