Documentation ¶
Index ¶
- Constants
- func CheckTodoFileName(path string) error
- func FinishedCharacters() []string
- func MarkTaskAsFinished(task *Task) error
- func MarkTaskAsUnfinished(task *Task) error
- func UnfinishedCharacters() []string
- type Task
- type TodoFile
- func (t *TodoFile) Append(task *Task)
- func (t *TodoFile) AppendMultiples(tasks []*Task)
- func (t *TodoFile) MarkAsCompleted(index int) (*Task, error)
- func (t *TodoFile) MarkAsUncompleted(index int) (*Task, error)
- func (t *TodoFile) RemoveTask(index int) (*Task, error)
- func (t *TodoFile) RenderToFile() (res string)
- func (t *TodoFile) RenderToScreen() (res string)
Constants ¶
View Source
const DefaultExtension string = ".todo"
Variables ¶
This section is empty.
Functions ¶
func CheckTodoFileName ¶
func FinishedCharacters ¶
func FinishedCharacters() []string
CONSTANT: Return the caracter signaling that the task is done
Explaination here => https://qvault.io/golang/golang-constant-maps-slices/
func UnfinishedCharacters ¶
func UnfinishedCharacters() []string
CONSTANT: Return the caracter signaling that the task is not done
Explaination here => https://qvault.io/golang/golang-constant-maps-slices/
Types ¶
type Task ¶
type Task struct { Name string // contains filtered or unexported fields }
Task represents a Task in .todo files 'Name' is the name of the task 'Finished' is self-explainatory
func ProcessMatch ¶
type TodoFile ¶
type TodoFile struct { Path string // contains filtered or unexported fields }
func NewTodoFile ¶
func (*TodoFile) AppendMultiples ¶
func (*TodoFile) MarkAsUncompleted ¶
Mark the task at index as uncompleted
func (*TodoFile) RenderToFile ¶
func (*TodoFile) RenderToScreen ¶
Click to show internal directories.
Click to hide internal directories.