diff --git a/src/util.go b/src/util.go new file mode 100644 index 0000000..b395b56 --- /dev/null +++ b/src/util.go @@ -0,0 +1,24 @@ +package main + +import "os" + +func folderExists(folderPath string) bool { + _, err := os.Stat(folderPath) + + return !os.IsNotExist(err) +} + +func createSettings() { + // TO DO: + // Create JSON file with default settings + + type DefaultSettings struct { + AuthenticationCookie string + } +} + +func loadSettings() { + // Check if JSON file exists + // If so, load into struct + // Else, create settings and return +}