19 lines
236 B
Go
19 lines
236 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
"math/rand"
|
|
)
|
|
|
|
func main() {
|
|
rand.Seed(time.Now().UnixNano())
|
|
|
|
start := time.Now()
|
|
results := Google("golang")
|
|
elapsed := time.Since(start)
|
|
|
|
fmt.Println(results)
|
|
fmt.Println(elapsed)
|
|
}
|