func (e ExactMatcher) Match(fi os.FileInfo) bool {
	return fi.Name() == e.expected
}
Match checks that the filename is exactly equal to the expected value.
package matchers
import (
	"os"
	"regexp"
	"strings"
	"time"
	"github.com/kbrgl/fuzzy"
)
type FileMatcher interface {
	Match(os.FileInfo) bool
}
type FuzzyMatcher struct {
	pattern string
}
func NewFuzzyMatcher(pattern string) *FuzzyMatcher {
	return &FuzzyMatcher{pattern: pattern}
}
func (f FuzzyMatcher) Match(fi os.FileInfo) bool {
	return fuzzy.MatchFold(fi.Name(), f.pattern)
}
type ExactMatcher struct {
	expected string
}
func NewExactMatcher(expected string) *ExactMatcher {
	return &ExactMatcher{
		expected: expected,
	}
}