A recursive, parallel webscraper and markdown converter written as a beginner project to get a feeling for the go programming language, it's take on parallelization and testing.
usage: www2md <root_url> <storage_directory>
recursively scrapes the root_url
for any link that leads further down, gets it and saves the body as a markdown file in a file hierarchy under storage_directory
that can be used as a basis for the content
folder of a hugo project.
-
go list -f '{{ .Imports }}'
vs.go list -f '{{ .TestImports }}'
gives me confidence that I can import whatever I want during testing without cluttering the final binary. This shows you more nice things you can do withgo list
. -
Interfaces
is a very interesting and ergonomic approach to abstractions. It was used mainly to ease the task of testing.