Versions in this module Expand all Collapse all v1 v1.0.1 Jun 22, 2025 Changes in this version + func HardReset() error v1.0.0 Jun 20, 2025 Changes in this version + var DB *sql.DB + func AddTask(t Task) error + func BackupDB() error + func CheckTaskExists(id int) error + func CloseDB() error + func CompleteTask(id int) error + func InitDB() error + func RemoveTask(id int) error + func ReopenTask(id int) error + func RestoreBackup() error + func SetDue(id int, newDate string) error + func SetTitle(id int, newTitle string) error + func TogglePriority(id int) error + type Task struct + Complete bool + CompleteDate sql.NullString + Due string + ID int + Priority bool + Title string + func GetTasks() ([]Task, error) + func SearchTasks(keyword string, searchID bool, searchTitle bool, searchDue bool) ([]Task, error)