Documentation ¶ Index ¶ Constants func Count(c context.Context) (int, error) type Task func Create(c context.Context, title string) (*Task, error) func Get(c context.Context, taskID string) (*Task, error) func GetAll(c context.Context) ([]*Task, error) func (t *Task) Complete(c context.Context) error func (t *Task) Delete(c context.Context) error func (t *Task) ID() string func (t *Task) Incomplete(c context.Context) error func (t *Task) Recover(c context.Context) error func (t *Task) State() string func (t *Task) Title() string Constants ¶ View Source const ( StateIncomplete = "incomplete" StateComplete = "complete" ) Variables ¶ This section is empty. Functions ¶ func Count ¶ func Count(c context.Context) (int, error) Types ¶ type Task ¶ type Task struct { // contains filtered or unexported fields } func Create ¶ func Create(c context.Context, title string) (*Task, error) func Get ¶ func Get(c context.Context, taskID string) (*Task, error) func GetAll ¶ func GetAll(c context.Context) ([]*Task, error) func (*Task) Complete ¶ func (t *Task) Complete(c context.Context) error func (*Task) Delete ¶ func (t *Task) Delete(c context.Context) error func (*Task) ID ¶ func (t *Task) ID() string func (*Task) Incomplete ¶ func (t *Task) Incomplete(c context.Context) error func (*Task) Recover ¶ func (t *Task) Recover(c context.Context) error func (*Task) State ¶ func (t *Task) State() string func (*Task) Title ¶ func (t *Task) Title() string Source Files ¶ View all Source files tasks.go Directories ¶ Show internal Expand all Path Synopsis tasksdo taskstatesdo Click to show internal directories. Click to hide internal directories.