task

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Progress

type Progress string
const (
	NotStarted Progress = "Not Started"
	InProgress Progress = "In Progress"
	Completed  Progress = "Completed"
)

type Task

type Task struct {
	Id          uuid.UUID
	Title       string
	Description string
	Status      Progress
}

func NewTask

func NewTask(title, description string) *Task

type TaskList

type TaskList struct {
	Path  string
	Tasks []*Task
}

func NewTaskList

func NewTaskList(path string) (*TaskList, error)

func (*TaskList) Add

func (taskList *TaskList) Add(task *Task) error

func (*TaskList) Find

func (taskList *TaskList) Find(id uuid.UUID) *Task

func (*TaskList) Remove

func (taskList *TaskList) Remove(task *Task) error

func (*TaskList) Update

func (taskList *TaskList) Update(oldTask, newTask *Task) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL