pkger/internal/takeon/github.com/markbates/hepa/hepa.go

16 lines
217 B
Go
Raw Normal View History

2019-10-16 17:24:05 +03:00
package hepa
func WithFunc(p Purifier, fn FilterFunc) Purifier {
c := New()
c.parent = &p
c.filter = fn
return c
}
func With(p Purifier, f Filter) Purifier {
c := New()
c.parent = &p
c.filter = f
return c
}