Score
0
Watch 32 Star 114 Fork 53

Zeroing-ZY / 云捷Go gf版GoMIT

Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
基于gf框架开发用于所有的Web应用程序,如网站管理后台,网站会员中心,CMS,CRM,OA spread retract

Clone or download
main.go 586 Bytes
Copy Edit Web IDE Raw Blame History
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()
}

Comment ( 0 )

Sign in for post a comment

Go
1
https://gitee.com/yunjieg/yjgo.git
git@gitee.com:yunjieg/yjgo.git
yunjieg
yjgo
云捷Go gf版
master

Help Search