(l baker.Record)
| 61 | } |
| 62 | |
| 63 | func (f *StringMatch) isMatchAny(l baker.Record) bool { |
| 64 | buf := l.Get(f.field) |
| 65 | for i := range f.strings { |
| 66 | if bytes.Equal(buf, f.strings[i]) { |
| 67 | return true |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | return false |
| 72 | } |
| 73 | |
| 74 | // Process is where the actual filtering takes place. |
| 75 | func (f *StringMatch) Process(l baker.Record, next func(baker.Record)) { |