goldsmith/filters/condition/condition.go

22 lines
316 B
Go
Raw Normal View History

2024-02-17 06:35:49 +00:00
package condition
import (
"git.foosoft.net/alex/goldsmith"
)
type Condition struct {
accept bool
}
func New(accept bool) *Condition {
return &Condition{accept: accept}
}
func (*Condition) Name() string {
return "condition"
}
func (self *Condition) Accept(file *goldsmith.File) bool {
return self.accept
}