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.

11 lines
139 B

  1. package main
  2. import "fmt"
  3. import "net/http"
  4. func main() {
  5. _, err := http.Head("PING_URL")
  6. if err != nil {
  7. fmt.Printf("%s", err)
  8. }
  9. }