Get all URLs from a file and check HTTP Response status codes. Redirections are not applied and initial HTTP status is returned.
cd <into the code>
go build
https://www.example.com
https://www.example.net
https://www.example.org
./checkredirects sites.txt
Results will be presented in stdout.
GOOS="windows" GOARCH="amd64" go build
GOOS="darwin" GOARCH="amd64" go build
GOOS="darwin" GOARCH="arm64" go build