Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Web = FakeSearch("web", "The Go Programming Language", "http://golang.org") Image = FakeSearch("image", "The Go gopher", "https://blog.golang.org/gopher/gopher.png") Video = FakeSearch("video", "Concurrency is not Parallelism", "https://www.youtube.com/watch?v=cN_DpYBzKso") )
START2 OMIT
View Source
var ( Web1 = FakeSearch("web1", "The Go Programming Language", "http://golang.org") Web2 = FakeSearch("web2", "The Go Programming Language", "http://golang.org") Image1 = FakeSearch("image1", "The Go gopher", "https://blog.golang.org/gopher/gopher.png") Image2 = FakeSearch("image2", "The Go gopher", "https://blog.golang.org/gopher/gopher.png") Video1 = FakeSearch("video1", "Concurrency is not Parallelism", "https://www.youtube.com/watch?v=cN_DpYBzKso") Video2 = FakeSearch("video2", "Concurrency is not Parallelism", "https://www.youtube.com/watch?v=cN_DpYBzKso") )
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
Title, URL string
}
START1 OMIT
func SearchParallel ¶
func SearchReplicated ¶
type SearchFunc ¶
func FakeSearch ¶
func FakeSearch(kind, title, url string) SearchFunc
func First ¶
func First(replicas ...SearchFunc) SearchFunc
Click to show internal directories.
Click to hide internal directories.