flag parse update

pull/218/head
Gordon 3 years ago
parent a89bb33015
commit 51ee2df755

@ -15,6 +15,7 @@ func main() {
router := cms_api.NewGinRouter()
router.Use(utils.CorsHandler())
ginPort := flag.Int("port", 8000, "get ginServerPort from cmd,default 8000 as port")
flag.Parse()
fmt.Println("start cms api server, port: ", ginPort)
router.Run(":" + strconv.Itoa(*ginPort))
}

Loading…
Cancel
Save