Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Matcher ¶
Matcher is simply an interface that regexp.Regexp fulfill (with the method we care for) This way we can implement another Matcher fulfilling this interface
func NewMatcher ¶
NewMatcher returns a matcher that is the regexp.Regexp or a function that is always true
type MatcherFunc ¶
MatcherFunc is any `func([]byte) bool` acting as a named target for implementation
func (MatcherFunc) Match ¶
func (matcher MatcherFunc) Match(b []byte) bool
Match implements interface Matcher for MatcherFunc, delegating to the underlying function
Click to show internal directories.
Click to hide internal directories.