Yuce's Blog

Cognitive dissonance is yoga for the brain.*

Go Sample: Link Checker


You should have heard about Go, Google's new language. To be honest, it is one of the ugliest languages I've ever used (I mean among the ones not designed to be ugly); but it's in­ter­est­ing enough, and I decided to teach myself some.

Here's the result of a few hrs of reading, searching, coding, reading again and coding: an (almost) port of Josh Marshall's Python URL Link Checker. It doesn't support checking local files, but has a nice -v switch which lets you see all processed URLs. So far, pro­gram­ming Go felt a bit like pro­gram­ming C++. Also, Go links the code statically at the continue.

go, link checker