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

34 lines
449 B
Go

package main
import (
"flag"
"fmt"
_ "net/http/pprof"
"os"
"github.com/spf13/cobra"
)
var (
config = flag.String("config", "application.toml", "config file")
)
func main() {
rootCmd := &cobra.Command{
Use: "hk4e",
Short: "hk4e server",
SilenceUsage: true,
}
rootCmd.AddCommand(
GSCmd(),
GMCmd(),
DispatchCmd(),
GateCmd(),
)
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}