enterprise/cmd/enterprise.go

22 lines
301 B
Go

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