forked from GithubBackups/healthchecks
Make sure the Go snippet shows up in the welcome page and also in the check details page.
12 lines
139 B
Plaintext
12 lines
139 B
Plaintext
package main
|
|
|
|
import "fmt"
|
|
import "net/http"
|
|
|
|
func main() {
|
|
_, err := http.Head("PING_URL")
|
|
if err != nil {
|
|
fmt.Printf("%s", err)
|
|
}
|
|
}
|