Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (16 sloc) 324 Bytes
package condition
import (
"github.com/FooSoft/goldsmith"
)
type Condition struct {
accept bool
}
func New(accept bool) *Condition {
return &Condition{accept}
}
func (*Condition) Name() string {
return "condition"
}
func (filter *Condition) Accept(file *goldsmith.File) (bool, error) {
return filter.accept, nil
}
You can’t perform that action at this time.