My command line utility countsource has been rewritten. When starting refactoring, I realised I would like to keep the old one, so I just started fresh. That is - it does the same thing, so much of the code is very similar.
This time I added tests, and made it simpler to configure. It is written in a more idiomatic Go, as well. Have a look at the new cntsrc, at github.com/borglefink/cntsrc.