1 Star 0 Fork 153

习惯孤独 / 云捷Go gf版

forked from Zeroing-ZY / 云捷Go gf版 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.go 586 Bytes
一键复制 编辑 原始数据 按行查看 历史
package main
import (
"github.com/gogf/gf/frame/g"
_ "yj-app/boot"
_ "yj-app/router"
)
// @title 云捷GO 自动生成API文档
// @version 1.0
// @description 生成文档请在调试模式下进行<a href="/tool/swagger?a=r">重新生成文档</a>
// @host localhost
// @BasePath /api
func main() {
serverSwitch := g.Cfg().GetBool("status.admin")
apiSwitch := g.Cfg().GetBool("status.api")
if serverSwitch {
g.Server().Start()
}
if apiSwitch {
address := g.Cfg().GetString("api.Address")
api := g.Server("api")
api.SetAddr(address)
api.Start()
}
g.Wait()
}
Go
1
https://gitee.com/qtsun/yjgo.git
git@gitee.com:qtsun/yjgo.git
qtsun
yjgo
云捷Go gf版
master

搜索帮助