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

Function init

chapter2/sample/search/default.go:7–10  ·  view source on GitHub ↗

init registers the default matcher with the program.

()

Source from the content-addressed store, hash-verified

5
6// init registers the default matcher with the program.
7func init() {
8 var matcher defaultMatcher
9 Register("default", matcher)
10}
11
12// Search implements the behavior for the default matcher.
13func (m defaultMatcher) Search(feed *Feed, searchTerm string) ([]*Result, error) {

Callers

nothing calls this directly

Calls 1

RegisterFunction · 0.85

Tested by

no test coverage detected