28 lines
596 B
Go
28 lines
596 B
Go
package main
|
|
|
|
import (
|
|
"ArmedPolice/cmd/serve"
|
|
"flag"
|
|
figure "github.com/common-nighthawk/go-figure"
|
|
"runtime"
|
|
)
|
|
|
|
var (
|
|
ConfigFile = flag.String("config", "./config.yaml", "config.yaml path")
|
|
)
|
|
|
|
// @title ArmedPolice API文档
|
|
// @version 1.0
|
|
// @description ArmedPolice API文档
|
|
// @host 127.0.0.1:8010
|
|
|
|
// @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()
|
|
}
|