added form and db support
This commit is contained in:
parent
5e4bc3ada7
commit
ddb4469501
9 changed files with 504 additions and 48 deletions
6
main.go
6
main.go
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue