MCPcopy Index your code
hub / github.com/goinaction/code / Matcher

Interface Matcher

chapter2/sample/search/match.go:15–17  ·  view source on GitHub ↗

Matcher defines the behavior required by types that want to implement a new search type.

Source from the content-addressed store, hash-verified

13// Matcher defines the behavior required by types that want
14// to implement a new search type.
15type Matcher interface {
16 Search(feed *Feed, searchTerm string) ([]*Result, error)
17}
18
19// Match is launched as a goroutine for each individual feed to run
20// searches concurrently.

Callers 1

MatchFunction · 0.65

Implementers 5

googlechapter7/patterns/search/searchers.go
bingchapter7/patterns/search/searchers.go
yahoochapter7/patterns/search/searchers.go
defaultMatcherchapter2/sample/search/default.go
rssMatcherchapter2/sample/matchers/rss.go

Calls

no outgoing calls

Tested by

no test coverage detected