diff options
Diffstat (limited to 'subex/filter.go')
-rw-r--r-- | subex/filter.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/subex/filter.go b/subex/filter.go index dce0f0e..ae4b8ab 100644 --- a/subex/filter.go +++ b/subex/filter.go @@ -38,6 +38,12 @@ func (_ anyArrayFilter) valueFilter(value walk.Value) bool { return isArray } +type anyMapFilter struct {} +func (_ anyMapFilter) valueFilter(value walk.Value) bool { + _, isMap := value.(walk.MapValue) + return isMap +} + type anyStringFilter struct {} func (_ anyStringFilter) valueFilter(value walk.Value) bool { _, isString := value.(walk.StringValue) |