healthchecks_healthchecks/templates/front/snippets/go.txt
2020-07-17 17:21:10 +03:00

17 lines
243 B
Plaintext

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)
}
}