1 Star 1 Fork 0

teamlint/iris

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
not_satisfied.go 384 Bytes
一键复制 编辑 原始数据 按行查看 历史
package rule
import (
"github.com/kataras/iris/context"
)
type notSatisfiedRule struct{}
var _ Rule = &notSatisfiedRule{}
// NotSatisfied returns a rule which allows nothing
func NotSatisfied() Rule {
return &notSatisfiedRule{}
}
func (n *notSatisfiedRule) Claim(context.Context) bool {
return false
}
func (n *notSatisfiedRule) Valid(context.Context) bool {
return false
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/teamlint/iris.git
git@gitee.com:teamlint/iris.git
teamlint
iris
iris
v11.1.1

搜索帮助