blob: 3d8a37ba08174df9333928d6ba32c7f3d77d364c [file] [log] [blame]
// +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)
}