mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-10 06:29:08 -04:00
predicate.Not
This commit is contained in:
@@ -23,3 +23,9 @@ func Any(predicates ...Predicate) Predicate {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
func Not(predicate Predicate) Predicate {
|
||||
return func() bool {
|
||||
return !predicate()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user