blob: 00d3ed97436e5f22ccd8ffdbc66ef0e09bbaa23d [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.SearchTimeout("golang", 80*time.Millisecond) // HLsearch
elapsed := time.Since(start)
fmt.Println(results)
fmt.Println(elapsed, err)
}