A website link checker

Go Report Card

A linkchecker is a simple CLI tool to find all broken links in your website.

Build

  • with Taskfile

    task build
  • with Go CLI

    go build -o linkcheker cmd/linkchecker/main.go

Example of usage

./linkcheker -url https://en.wikipedia.org/
parsed url: https://en.wikipedia.org/
97 links scanned, 0 broken found

./linkcheker -url https://en.wikipedia-broken.org/
Get "https://en.wikipedia-broken.org/": dial tcp: lookup en.wikipedia-broken.org: no such host

./linkcheker -url https://github.com/Jasstkn/link-checker
13 links scanned, 3 broken links found:
https://github.com/Jasstkn/link-checker/tree/{{ urlEncodedRefName }};
https://github.com/Jasstkn/link-checker/tree/{{ urlEncodedRefName }};
https://github.com/Jasstkn/test-repo.git

broken link to test

test broken link

GitHub

View Github