I\'m making a URL fetcher in Go and have a list of URLs to fetch. I send http.Get() requests to each URL and obtain their response.
http.Get()
resp,fetch_e
Apparently in Go 1.3 http.Client has Timeout field
client := http.Client{ Timeout: 5 * time.Second, } client.Get(url)
That's done the trick for me.