Files
ArmedPolice/main.go

28 lines
596 B
Go
Raw Normal View History

2021-11-02 09:43:19 +08:00
package main
2021-11-02 16:22:07 +08:00
import (
"ArmedPolice/cmd/serve"
"flag"
figure "github.com/common-nighthawk/go-figure"
"runtime"
)
var (
ConfigFile = flag.String("config", "./config.yaml", "config.yaml path")
)
2021-11-02 09:43:19 +08:00
2021-11-04 16:44:42 +08:00
// @title ArmedPolice API文档
2021-11-02 16:22:07 +08:00
// @version 1.0
2021-11-04 16:44:42 +08:00
// @description ArmedPolice API文档
// @host 127.0.0.1:8010
2021-11-02 16:22:07 +08:00
// @contact.name Henry
// @contact.url https://ipeace.org.cn
// @contact.email email@ipeace.org.cn
func main() {
flag.Parse()
runtime.GOMAXPROCS(runtime.NumCPU())
figure.NewFigure("Armed Police Serve", "", true).Print()
serve.NewServe()(&serve.Option{Config: *ConfigFile}).Run()
}