state

package
v0.0.0-...-1517dce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	ToDos ToDos
	Title string
	// contains filtered or unexported fields
}

func NewState

func NewState() *State

func (*State) AppendToDo

func (s *State) AppendToDo(toDo ToDo)

func (*State) RemoveToDo

func (s *State) RemoveToDo(index int)

func (*State) SetTitle

func (s *State) SetTitle(title string)

func (*State) SetToDoDone

func (s *State) SetToDoDone(index int, done bool)

func (*State) Subscribe

func (s *State) Subscribe(f func())

type ToDo

type ToDo struct {
	Title string
	Done  bool
}

type ToDos

type ToDos []ToDo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL