Documentation
¶
Overview ¶
Package store provides file-backed persistence for quest todos.
Todos are stored as JSON in ~/.quest/todos.json. The package exposes helpers to load, save, look up by ID, and remove the store file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("todo not found")
ErrNotFound is returned when a requested todo cannot be found.
Functions ¶
Types ¶
type Todo ¶
type Todo struct {
ID string `json:"id"`
Title string `json:"title"`
Done bool `json:"done"`
Deleted bool `json:"deleted"`
CreatedAt time.Time `json:"created_at"`
DueDate *time.Time `json:"due_date,omitempty"`
Project string `json:"project,omitempty"`
}
Todo is the persisted model for a single task in the quest store.
Click to show internal directories.
Click to hide internal directories.