diff options
Diffstat (limited to 'main/filter.go')
-rw-r--r-- | main/filter.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/filter.go b/main/filter.go index 796f558..f69d01a 100644 --- a/main/filter.go +++ b/main/filter.go @@ -69,6 +69,14 @@ func (filter AndFilter) exec(space WalkItem) bool { return filter.left.exec(space) && filter.right.exec(space) } +type OrFilter struct { + left Filter + right Filter +} +func (filter OrFilter) exec(space WalkItem) bool { + return filter.left.exec(space) || filter.right.exec(space) +} + type NotFilter struct { content Filter } |