package
1.0.1
Repository: https://github.com/jangozw/go-quick-api.git
Documentation: pkg.go.dev

# Functions

中断并输出.
绑定输入参数.
No description provided by the author
No description provided by the author
展示的分页.
api 监听地址.
app 包初始化,加载服务失败要panic cfg,logger 是系统要求强制加载的,其他服务可选.
No description provided by the author
环境.
No description provided by the author
No description provided by the author
loadCfg 从启动参数或者项目目录中查找并加载配置文件.
加载Db.
加载日志.
加载redis.
api 请求发生了panic 记入日志.
No description provided by the author
定义路由 gin.Engine 统一加warp.
正常输出.
带分页的输出结果 response.data 的结构.
根据token解析登陆用户.
err 为nil 即为成功.
返回错误, 带错误信息.
No description provided by the author
api 捕获异常.
中间件 捕获异常.

# Constants

No description provided by the author
No description provided by the author
服务列表.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
服务列表.
服务列表.

# Variables

编译的app版本等信息.
解析的配置文件.
配置文件路径,启动参数指定.
数据库.
已经加载的服务.
日志.
redis.

# Structs

.
登陆用户信息, 可根据业务需要扩充字段.
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

api 处理函数类型.
注册路由函数类型.