diff --git a/main.go b/main.go index a58ab82..5327bd8 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,8 @@ package main import ( + "fmt" + "gateway/config" "gateway/core" "gateway/initialization" "gateway/middleware" @@ -35,5 +37,5 @@ func main() { // context.String(http.StatusOK, get("get", context.Request.RequestURI, context.GetString("X-Request-Id"), dd)) //}) - _ = app.Run(":8889") + _ = app.Run(fmt.Sprintf(":%v", config.AppInfo.Port)) }