Skip to content

Instantly share code, notes, and snippets.

@arriqaaq
Created January 27, 2023 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arriqaaq/2e8435ab1dde000367ddb2c23cdbaa5e to your computer and use it in GitHub Desktop.
Save arriqaaq/2e8435ab1dde000367ddb2c23cdbaa5e to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"net/http"
)
func main() {
client := &http.Client{}
req, _ := http.NewRequest("GET", "https://www.example.com", nil)
resp, _ := client.Do(req)
fmt.Println(resp.StatusCode)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment