added form and db support

This commit is contained in:
steven carpenter 2025-07-03 21:21:25 -04:00
parent 5e4bc3ada7
commit ddb4469501
9 changed files with 504 additions and 48 deletions

View file

@ -1,6 +1,7 @@
package main
import (
"log"
"fmt"
"os"
"time"
@ -9,6 +10,11 @@ import (
)
func main() {
if err := InitDB("data"); err != nil {
log.Fatalf("Failed to initialize BadgerDB: %v", err)
}
defer CloseDB()
// Get the current datetime
now := time.Now()
// Set the start date used for opening the current month instead of 1/1/1970