GenGo

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 0e1e64a7ed4235a77a7c5db628b1eaa1d00378c7
parent 00f682c2eb6300baf3ed504767d6983fe5db0010
Author: Tyler Clark <tyler.clark@foxide.xyz>
Date:   Thu,  8 Jan 2026 16:48:03 -0500

Small renaming

Diffstat:
Mmain.go | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/main.go b/main.go @@ -3,7 +3,7 @@ /*****************************************************************/ /* DONE: Basic functionality for converting markdown/org to html */ -/* DONE: Mirroring dir structure of source files */ +/* TODO: Recursively mirroring dir structure of source files */ /* TODO: RSS generator built in */ /* TODO: Sitemap generator */ /*****************************************************************/ @@ -27,11 +27,11 @@ import ( "path" // For removing file extensions ) -/* Release version */ -const version = "0.01" +/* Version Number */ +const version = "0.01: Shoddy" -func ValidateFile(filename string) { - _, err := os.Stat(filename) +func ValidateDir(directory string) { + _, err := os.Stat(directory) if os.IsNotExist(err) { fmt.Fprintln(os.Stderr, "No file or directory found!") os.Exit(1) @@ -40,7 +40,7 @@ func ValidateFile(filename string) { /* This is a test function to try to copy a directory */ func DirSetup(source string, destination string) { - ValidateFile(source) + ValidateDir(source) fsys := os.DirFS(source) os.CopyFS(destination, fsys) fmt.Printf("Directory: %v copied\n", source)