MCPcopy Create free account
hub / github.com/goinaction/code / init

Function init

chapter2/sample/matchers/rss.go:64–67  ·  view source on GitHub ↗

init registers the matcher with the program.

()

Source from the content-addressed store, hash-verified

62
63// init registers the matcher with the program.
64func init() {
65 var matcher rssMatcher
66 search.Register("rss", matcher)
67}
68
69// Search looks at the document for the specified search term.
70func (m rssMatcher) Search(feed *search.Feed, searchTerm string) ([]*search.Result, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected