Skip to content
Use this tool to check for any potentially dead links on a given web page.
Go Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
.dockerignore
.gitignore
Dockerfile
README.md
go.mod
go.sum
main.go
main_test.go

README.md

Go Link Health

Use this tool to check for any potentially dead links on a given web page.

Installing Globally

To be written.

Building Locally

  1. Clone the project
  2. If you have Go >=1.13 installed run go mod download && go build -o main, otherwise run docker build -t nikoheikkila/go-link-health .

Usage

The command takes a URL as first argument. If no URL is specified a help text will be printed.

The command searches for HTML anchors found on the given page, visits them in parallel, and prints their status. A link is considered healthy if and only if a request to it returns HTTP status code between 200–299 within reasonable time. Occurred errors are logged.

Contributing

This is my first real Go project intended mainly as a scripting tool for myself. Any contributions towards more robust and idiomatic Golang code is welcomed. Send the PRs my way.

You can’t perform that action at this time.