Documentation
¶
Overview ¶
internal/todo.go
Index ¶
- Constants
- type DB
- func (db *DB) AddTodo(task string) error
- func (db *DB) CompleteTodo(id int) error
- func (db *DB) DeleteTodo(id int) error
- func (db *DB) GetAllTodos() ([]item, error)
- func (db *DB) GetCompletedTodos(since time.Time) ([]item, error)
- func (db *DB) GetPendingTodos() ([]item, error)
- func (db *DB) GetRecentOrPendingTodos(since time.Time) ([]item, error)
- func (db *DB) InitSchema() error
- type Todos
- func (t *Todos) Add(task string) error
- func (t *Todos) Complete(id int) error
- func (t *Todos) CountPending() int
- func (t *Todos) Delete(id int) error
- func (t *Todos) GetStandupTasks(currentTime time.Time) ([]string, time.Time)
- func (t *Todos) GetTasks(currentTime time.Time) ([]string, time.Time)
- func (t *Todos) List() ([]item, error)
- func (t *Todos) Print() error
Constants ¶
View Source
const ( ColorDefault = "\x1b[39m" ColorRed = "\x1b[91m" ColorGreen = "\x1b[32m" ColorBlue = "\x1b[94m" ColorGray = "\x1b[90m" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) CompleteTodo ¶
func (*DB) DeleteTodo ¶
func (*DB) GetAllTodos ¶
func (*DB) GetPendingTodos ¶
func (*DB) GetRecentOrPendingTodos ¶
type Todos ¶
type Todos struct {
// contains filtered or unexported fields
}
func (*Todos) CountPending ¶
func (*Todos) GetStandupTasks ¶
Click to show internal directories.
Click to hide internal directories.