70 Star 505 Fork 184

Lyric / gin-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.go 837 Bytes
一键复制 编辑 原始数据 按行查看 历史
package main
import (
"os"
"github.com/LyricTian/gin-admin/v10/cmd"
"github.com/urfave/cli/v2"
)
// Usage: go build -ldflags "-X main.VERSION=x.x.x"
var VERSION = "v10.0.2"
// @title ginadmin
// @version v10.0.2
// @description A lightweight, flexible, elegant and full-featured RBAC scaffolding based on GIN + GORM 2.0 + Casbin 2.0 + Wire DI.
// @securityDefinitions.apikey ApiKeyAuth
// @in header
// @name Authorization
// @schemes http https
// @basePath /
func main() {
app := cli.NewApp()
app.Name = "ginadmin"
app.Version = VERSION
app.Usage = "A lightweight, flexible, elegant and full-featured RBAC scaffolding based on GIN + GORM 2.0 + Casbin 2.0 + Wire DI."
app.Commands = []*cli.Command{
cmd.StartCmd(),
cmd.StopCmd(),
cmd.VersionCmd(VERSION),
}
err := app.Run(os.Args)
if err != nil {
panic(err)
}
}
Go
1
https://gitee.com/lyric/gin-admin.git
git@gitee.com:lyric/gin-admin.git
lyric
gin-admin
gin-admin
main

搜索帮助