1.7+
Timing out an HTTP request with a context can be accomplished with only the standard library (not the subrepos) in 1.7+:
import (
"context"
"net/http"
"time"
)
req, err := http.NewRequest("GET", `https://example.net`, nil)
ctx, _ := ...