Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
type TaskManager ¶
type TaskManager struct {
// contains filtered or unexported fields
}
TaskManager manages a list of tasks in memory.
var DefaultTaskList *TaskManager
func NewTaskManager ¶
func NewTaskManager() *TaskManager
NewTaskManager returns an empty TaskManager.
func (*TaskManager) All ¶
func (m *TaskManager) All() []*Task
All returns the list of all the Tasks in the TaskManager.
func (*TaskManager) Find ¶
func (m *TaskManager) Find(ID int64) (*Task, bool)
Find returns the Task with the given id in the TaskManager and a boolean indicating if the id was found.
func (*TaskManager) Save ¶
func (m *TaskManager) Save(task *Task) error
Save saves the given Task in the TaskManager.
Click to show internal directories.
Click to hide internal directories.