Better HTTP/1 connection reuse - The Go Programming Language
- Take a look at the following function: func getStatus(url string) (int, error) { resp, err := http.
- Get(url) if err != nil { return 0, err } defer resp.
Unverified
- Take a look at the following function: func getStatus(url string) (int, error) { resp, err := http.
- Get(url) if err != nil { return 0, err } defer resp.
Sources: Go