Documentation
¶
Index ¶
- type Element
- type Set
- func (s *Set) Add(description string)
- func (s *Set) AddElement(elem Element)
- func (s *Set) All() iter.Seq[Element]
- func (s *Set) Clone() *Set
- func (s *Set) Delete(id uint) bool
- func (s *Set) Equal(other *Set) bool
- func (s *Set) Get(id uint) (Element, bool)
- func (s *Set) IndentWriteTo(w io.Writer, prefix, indent string) (int64, error)
- func (s *Set) Len() int
- func (s *Set) Mark(id uint, status Status) bool
- func (s *Set) MarshalJSON() ([]byte, error)
- func (s *Set) ReadFrom(r io.Reader) (n int64, err error)
- func (s *Set) UnmarshalJSON(data []byte) error
- func (s *Set) Update(id uint, description string) bool
- func (s *Set) WriteTo(w io.Writer) (int64, error)
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element struct {
Id uint
Description string
Status Status
CreatedAt time.Time
UpdatedAt time.Time
}
func NewElement ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
func (*Set) AddElement ¶
func (*Set) IndentWriteTo ¶
func (*Set) MarshalJSON ¶
func (*Set) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.