First commit >:]

This commit is contained in:
2023-09-17 13:34:03 -04:00
commit b7c28cbf0d
23 changed files with 1410 additions and 0 deletions

23
timer.go Normal file
View File

@@ -0,0 +1,23 @@
package main
import (
"log"
"os"
"time"
)
func LoadTime() time.Time {
data, err := os.ReadFile(GetDeadlineResourcePath())
if err != nil {
data = make([]byte, 1)
data[0] = 0
}
deadline, err := time.Parse(time.RFC3339, string(data))
if err != nil {
log.Fatal(err)
}
return deadline
}