// +build ignore | |
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
"golang.org/x/talks/content/2016/applicative/google" | |
) | |
func init() { | |
rand.Seed(time.Now().UnixNano()) | |
} | |
func main() { | |
start := time.Now() | |
results, err := google.SearchReplicated("golang", 80*time.Millisecond) // HLsearch | |
elapsed := time.Since(start) | |
fmt.Println(results) | |
fmt.Println(elapsed, err) | |
} |