Process is where the actual filtering takes place.
(l baker.Record, next func(baker.Record))
| 91 | |
| 92 | // Process is where the actual filtering takes place. |
| 93 | func (f *RegexMatch) Process(l baker.Record, next func(baker.Record)) { |
| 94 | if f.match(l) == f.invert { |
| 95 | atomic.AddInt64(&f.discarded, 1) |
| 96 | return |
| 97 | } |
| 98 | |
| 99 | next(l) |
| 100 | } |