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.
|
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"flag"
|
|
|
|
|
"main_exam_server/config"
|
|
|
|
|
"main_exam_server/loges"
|
|
|
|
|
"main_exam_server/service"
|
|
|
|
|
"os"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
systemConfigFiles = flag.String("configFile", "iniconfig/appConfig.ini", "APP配置文件")
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
|
flag.Parse()
|
|
|
|
|
getAppConfig := config.LoadSystemConfig(*systemConfigFiles)
|
|
|
|
|
if getAppConfig != nil {
|
|
|
|
|
loges.LongInit("App配置文件读取错误!")
|
|
|
|
|
os.Exit(3)
|
|
|
|
|
}
|
|
|
|
|
// fmt.Println(common.GetYesterDay())
|
|
|
|
|
serverRun := service.NewServer()
|
|
|
|
|
serverRun.Run(config.AppConfig.ListenPort)
|
|
|
|
|
|
|
|
|
|
// go mod tidy go的mode运行操作
|
|
|
|
|
}
|