commit 92626ed9a30ac73fcb912d97a1bc719e798be0b3
parent e3569bdbaa3abca850d161bc8c2e54a74bfa0220
Author: Tyler Clark <tyler.clark@foxide.xyz>
Date: Sun, 26 Apr 2026 23:19:41 -0400
Working on getting RSS generator function working
This patch adds the starting bits for the RSS generator. There is still quite a
bit of work to get it fully working though.
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/main.go b/main.go
@@ -115,10 +115,19 @@ func rssGen(filepath, filename, destination string) {
fmt.Println("Error:", err)
panic(err)
}
+
+ _, err = rssFile.WriteString("<article>\n")
+ if err != nil {
+ panic(err)
+ }
_, err = rssFile.WriteString(string(output))
if err != nil {
panic(err)
}
+ _, err = rssFile.WriteString("</article>\n")
+ if err != nil {
+ panic(err)
+ }
}