commit 8166938921985ac67e4362f342ce9356c91fe190
Author: Tyler Clark <tyler.clark@foxide.xyz>
Date: Fri, 2 Jan 2026 11:17:47 -0500
Initial commit
Diffstat:
3 files changed, 69 insertions(+), 0 deletions(-)
diff --git a/LICENSE b/LICENSE
@@ -0,0 +1,10 @@
+Copyright (c) 2026, Tyler Clark <tyler.clark@foxide.xyz> All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the <copyright holder>.
+ Neither the name of the <copyright holder> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+\ No newline at end of file
diff --git a/README.md b/README.md
@@ -0,0 +1,3 @@
+# GenGo
+This is the beginnings of a static site generator written to eventually replace my use of [SSG5](https://romanzolotarev.com/ssg.html).
+The hope is to make this program a bit easier to work with and develop on, as there are some features that I would like to add to SSG, but it seems difficult to tease apart that logic.
diff --git a/main.go b/main.go
@@ -0,0 +1,55 @@
+/* This is a project of a new static site generator */
+/* Eventually, this might replace SSG */
+
+/*****************************************************************/
+/* TODO: Basic functionality for converting markdown/org to html */
+/* TODO: Mirroring dir structure of source files */
+/* TODO: RSS generator built in */
+/*****************************************************************/
+/* LAYOUT OF CLI: */
+/* gengo ${SRC} ${DEST} ${DOMAIN} [optional args] */
+/*****************************************************************/
+/* OPTIONAL ARGUMENTS: */
+/* -r: Do not generate RSS feed */
+/* -s: Do not generate sitemap */
+/* -v: Show program version number */
+/* -h: Display help */
+/*****************************************************************/
+
+package main
+
+import (
+ //"fmt" // For formatting some outputs
+ "os" // File system and argument library
+)
+
+/* Release version */
+const version = "pre-alpha"
+
+func callHelp() {
+ println("One day this will be a useful help message")
+}
+
+func ArgParser (argument[] string) {
+
+ cArgs := len(argument)
+
+ for i := 0; i < cArgs; i++ {
+ switch argument[i] {
+ case "-h", "--help":
+ callHelp()
+ case "-v", "--version":
+ println("Version:", version)
+ default:
+ println("Do something valid")
+ }
+ }
+
+}
+
+func main() {
+ arguments := os.Args[1:]
+
+ /* Parse the various options to figure out what we are doing */
+ ArgParser(arguments)
+}