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.
 
 
 
 
 

329 B

Go

Below is an example of making an HTTP request to SITE_NAME from Go.

package main

import "fmt"
import "net/http"
import "time"

func main() {
    var client = &http.Client{
        Timeout: 10 * time.Second,
    }

    _, err := client.Head("PING_URL")
    if err != nil {
        fmt.Printf("%s", err)
    }
}