Files
Andras Bacsai b5705acac6 taco
2026-01-14 09:40:14 +01:00

20 lines
239 B
Go

package main
import (
"net/http"
"os"
)
func main() {
resp, err := http.Get("http://localhost:80/health")
if err != nil {
os.Exit(1)
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
os.Exit(1)
}
os.Exit(0)
}