You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
329 B

  1. # Go
  2. Below is an example of making an HTTP request to SITE_NAME from Go.
  3. ```go
  4. package main
  5. import "fmt"
  6. import "net/http"
  7. import "time"
  8. func main() {
  9. var client = &http.Client{
  10. Timeout: 10 * time.Second,
  11. }
  12. _, err := client.Head("PING_URL")
  13. if err != nil {
  14. fmt.Printf("%s", err)
  15. }
  16. }
  17. ```