go项目脚手架
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sorbet/main.go

24 lines
339 B

package main
import (
1 year ago
"log"
"sorbet/internal"
"sorbet/pkg/app"
"sorbet/pkg/env"
)
func main() {
if err := env.Init(); err != nil {
panic(err)
}
if err := internal.Init(); err != nil {
panic(err)
}
if err := app.Init("--udp", "false"); err != nil {
panic(err)
}
if err := app.Loop(); err != nil {
1 year ago
log.Panicln(err)
}
}