120 Star 474 Fork 151

duolatech / xApiManager

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.go 443 Bytes
一键复制 编辑 原始数据 按行查看 历史
duolatech 提交于 2019-05-20 22:43 . v3 golang版本
package main
import (
"github.com/gin-gonic/gin"
"runtime"
"xapimanager/application/common"
"xapimanager/config"
"xapimanager/routes"
)
func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
sysconfig := config.GetGlobal()
if sysconfig.DEBUG {
gin.SetMode(gin.DebugMode)
} else {
gin.SetMode(gin.ReleaseMode)
}
router := routes.InitRouter()
router.Run(":" + sysconfig.SERVER_PORT)
common.Open(sysconfig.SERVER_WEBSITE)
}
Go
1
https://gitee.com/duolatech/xapimanager.git
git@gitee.com:duolatech/xapimanager.git
duolatech
xapimanager
xApiManager
master

搜索帮助