知行学院重新架构Golang版后台
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.

28 lines
565 B

4 years ago
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配置文件")
)
4 years ago
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运行操作
4 years ago
}