jlelse’s Blog

Thoughts, stories and ideas

Find broken links with GoBlog

Published on in 👨‍💻 Dev
Short link: https://b.jlel.se/s/41d
Share online Translate

Even though it is often said that the Internet does not forget, it does forget some things. When people shut down their websites, delete sites or even sell their domains.

Since I share a lot of links to other sites on my blog and I just found out this morning that Zola (an alternative to Hugo) also offers a command called “check” that can be used to check links, I thought I’d implement that in GoBlog as well.

Now I have a way to find broken links on my blog that is more performant than the tool muffet, which I already mentioned once.

Programming this feature also gave me the opportunity to take a closer look at Channels and WaitGroups and how they work together with Goroutines to parallelize the work as much as possible.

Next I will have a look at what to do with all the broken links. Unfortunately, there are quite a few.

Tags:

Jan-Lukas Else
Interactions & Comments