A simple command-line tool to check the health of a given URL.
Run the tool with the following command:
go run main.go -url <URL>Replace with the URL you want to check.
Healthy Example:
go run main.go -url https://www.example.com/Run the tool with the following command:
go run main.go -port <PORT> -host <HOST>Replace with the port you want to check. Replace with the host you want to check.
Healthy Example:
go run main.go -port 80 -host example.comNavigate to inside of healthchecker directory and run:
go test -v