go build
!
./linkchecker https://example.com
Simple solution with Bash:
for site in https://example.com https://example.com/test; do ./linkchecker $site; done
Checking link https://example.com
Link ok for https://example.com
Checking link https://example.com/test123456
404 found for https://example.com/test123456