Documentation
¶
Index ¶
- type Set
- func (s *Set) AddDescription(description string)
- func (s Set) All() iter.Seq[Task]
- func (s Set) MarshalJSON() ([]byte, error)
- func (s *Set) ReadFrom(r io.Reader) (int64, error)
- func (s *Set) UnmarshalJSON(data []byte) error
- func (s *Set) WriteFile(path string) error
- func (s *Set) WriteTo(w io.Writer) (int64, error)
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set of Task's
func (*Set) AddDescription ¶
Add a new Task with given description and a unique Id
func (Set) MarshalJSON ¶
Returns JSON representation of Set as JSON Array.
Each element is a Task object.
func (*Set) ReadFrom ¶
Read from given Reader.
Reader should contain json encoded Task Set data. ReadFrom decodes and appends all elements into Set.
func (*Set) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.