Skip to content

Commit 054c4b7

Browse files
Combining the default matcher with the matchers source code file.
1 parent 0740565 commit 054c4b7

2 files changed

Lines changed: 10 additions & 15 deletions

File tree

‎src/chapter2/search/matchers/default.go‎

Lines changed: 0 additions & 15 deletions
This file was deleted.

‎src/chapter2/search/matchers/matchers.go‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,13 @@ func NewMatcher(feed *match.Feed) match.Matcher {
1616
return &defaultMatcher{feed}
1717
}
1818
}
19+
20+
// defaultMatcher implements the Matcher interface.
21+
type defaultMatcher struct {
22+
*match.Feed
23+
}
24+
25+
// Search looks at the document for the specified search term.
26+
func (m *defaultMatcher) Search(searchTerm string) ([]*match.Result, error) {
27+
return nil, nil
28+
}

0 commit comments

Comments
 (0)