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

Function OnlyFirst

chapter7/patterns/search/search.go:53–53  ·  view source on GitHub ↗

OnlyFirst is an option that will restrict the search session to just the first result.

(s *searchSession)

Source from the content-addressed store, hash-verified

51// OnlyFirst is an option that will restrict the search session to just the
52// first result.
53func OnlyFirst(s *searchSession) { s.first = true }
54
55// Submit uses goroutines and channels to perform a search against the three
56// leading search engines concurrently.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected