Documentation
¶
Overview ¶
Package todo holds the repository and the implementations for a TodoRepository.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrListNotFound is returned when a list is not found. ErrListNotFound = errors.New("the list was not found") //ErrListAlreadyExist is returned when trying to add a list that already exists. ErrListAlreadyExist = errors.New("the list already exists") )
View Source
var ( // ErrItemAlreadyExists is returned when a todo item is added to a list it already exists in. ErrItemAlreadyExists = errors.New("item already exists") )
View Source
var ( // ErrMissingValues is returned when an item is created without a text. ErrMissingValues = errors.New("missing values") )
Functions ¶
This section is empty.
Types ¶
type Item ¶
Item is an entity.
type List ¶
List is an aggregate.
func (*List) MarkItemDone ¶
MarkItemDone marks item in the todo list as done.
func (*List) RemoveItem ¶
RemoveItem removes item from the todo list.
Click to show internal directories.
Click to hide internal directories.