mirror of https://github.com/markbates/pkger.git
16 lines
217 B
Go
16 lines
217 B
Go
|
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
|
||
|
}
|