Documentation
¶
Index ¶
- Constants
- type Todos
- func (t *Todos) Add(task string)
- func (t *Todos) Complete(index int) error
- func (t *Todos) CountPending() int
- func (t *Todos) Delete(index int) error
- func (t *Todos) Load(filename string) error
- func (t *Todos) Print()
- func (t *Todos) Store(filename string) error
- func (t *Todos) ValidateIndex(index int) error
Constants ¶
View Source
const ( ColorDefault = "\x1b[39m" ColorRed = "\x1b[91m" ColorGreen = "\x1b[32m" ColorBlue = "\x1b[94m" ColorGray = "\x1b[90m" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Todos ¶
type Todos []item
func (*Todos) CountPending ¶
func (*Todos) ValidateIndex ¶
ValidateIndex checks if the index is within the range of the list
Click to show internal directories.
Click to hide internal directories.