Files
hk4e/cmd/dispatch/main.go
2022-11-24 23:29:33 +08:00

26 lines
342 B
Go

package main
import (
"context"
"flag"
"fmt"
_ "net/http/pprof"
"os"
"hk4e/dispatch/app"
)
var (
config = flag.String("config", "application.toml", "config file")
)
func main() {
flag.Parse()
//go statsviz_serve.Serve("0.0.0.0:2345")
err := app.Run(context.TODO(), *config)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
}