blob: 67434ce5d089a5a0d7a33025b34ef7a5890d9c3b [file] [log] [blame]
package google
func SearchParallel(query string) ([]Result, error) {
c := make(chan Result)
go func() { c <- Web(query) }()
go func() { c <- Image(query) }()
go func() { c <- Video(query) }()
return []Result{<-c, <-c, <-c}, nil
}