Documentation ¶
Index ¶
- Constants
- type Backend
- func (b *Backend) Add(text string)
- func (b *Backend) ChangeFilter(f string)
- func (b *Backend) Complete(id int)
- func (b *Backend) Count() int
- func (b *Backend) Delete(id int)
- func (b *Backend) DeleteCompleted()
- func (b *Backend) Each(fnc func(i *Item))
- func (b *Backend) Filter() string
- func (b *Backend) IsEmpty() bool
- func (b *Backend) Subscribe(cb func())
- func (b *Backend) ToggleAll()
- func (b *Backend) ToggleComplete(id int)
- type Item
Constants ¶
View Source
const ( All = "all" Active = "active" Completed = "completed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
func (*Backend) ChangeFilter ¶
func (*Backend) DeleteCompleted ¶
func (b *Backend) DeleteCompleted()
func (*Backend) ToggleComplete ¶
Click to show internal directories.
Click to hide internal directories.