Documentation
¶
Overview ¶
Copyright © 2024 NAME HERE <EMAIL ADDRESS>
Copyright © 2024 NAME HERE <EMAIL ADDRESS>
Copyright © 2024 NAME HERE <EMAIL ADDRESS>
Copyright © 2024 mosheto <msalshakhatreh@gmail.com>
Copyright © 2024 NAME HERE <EMAIL ADDRESS>
Index ¶
- func Execute()
- type StatusType
- type Task
- type TaskList
- func (tasks *TaskList) Add(title string)
- func (tasks *TaskList) AddTask(task Task)
- func (tasks *TaskList) ChangeStatus(id int, status StatusType)
- func (tasks *TaskList) Get(id int) *Task
- func (tasks *TaskList) List()
- func (tasks *TaskList) Load(filename string) error
- func (tasks *TaskList) Store(filename string) error
- func (tasks *TaskList) Update(id int, update string)
- type TaskUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StatusType ¶
type StatusType string
const ( NotStarted StatusType = "NotStarted" InProgress StatusType = "InProgress" Done StatusType = "Done" )
type Task ¶
type Task struct { Title string `json:"title"` Updates []TaskUpdate `json:"updates"` Status StatusType `json:"status"` CompletedAt time.Time `json:"completedAt"` }
type TaskList ¶
type TaskList []Task
func (*TaskList) ChangeStatus ¶
func (tasks *TaskList) ChangeStatus(id int, status StatusType)
type TaskUpdate ¶
Click to show internal directories.
Click to hide internal directories.