1 Star 3 Fork 2

gin-ecosystem/gin-middleware

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
common.go 347 Bytes
一键复制 编辑 原始数据 按行查看 历史
aesoper 提交于 2020-05-20 15:06 . 添加日志中间件
/**
* @Author: aesoper
* @Description: 中间件公共函数
* @File: common
* @Version: 1.0.0
* @Date: 2020/5/19 18:54
*/
package gin_middleware
import (
"github.com/gin-gonic/gin"
)
type (
// 跳过验证函数
Skipper func(c *gin.Context) bool
)
// 默认不跳过验证
func DefaultSkipper(c *gin.Context) bool {
return false
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/gin-ecosystem/gin-middleware.git
git@gitee.com:gin-ecosystem/gin-middleware.git
gin-ecosystem
gin-middleware
gin-middleware
master

搜索帮助