Elektrine lite

← Feed

@pwaring@social.xk7.net

Post #2474497

2026-05-08 15:14 UTC

Today's personal programming challenge: working out how to traverse a directory structure in Go and do the following: 1. If a directory, create the same path under another path (e.g. content/mydir -> output/mydir). 2. If a file, either copy it as-is to the same path (e.g. content/my.pdf -> output/my.pdf) or run it through a function to convert it (e.g. content/my.md -> output/my.html). This for an extremely simple static site generator, as I'm fed up with Hugo. #golang #hugo

Replies (0)

No replies.