task

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

func NewElement(description string) Element

func (*Element) Equal

func (e *Element) Equal(other Element) bool

func (*Element) Touch

func (e *Element) Touch()

type Set

type Set struct {
	// contains filtered or unexported fields
}

func (*Set) Add

func (s *Set) Add(description string)

func (*Set) AddElement

func (s *Set) AddElement(elem Element)

func (*Set) All

func (s *Set) All() iter.Seq[Element]

func (*Set) Clone

func (s *Set) Clone() *Set

func (*Set) Delete

func (s *Set) Delete(id uint) bool

func (*Set) Equal

func (s *Set) Equal(other *Set) bool

func (*Set) Get

func (s *Set) Get(id uint) (Element, bool)

func (*Set) IndentWriteTo

func (s *Set) IndentWriteTo(w io.Writer, prefix, indent string) (int64, error)

func (*Set) Len

func (s *Set) Len() int

func (*Set) Mark

func (s *Set) Mark(id uint, status Status) bool

func (*Set) MarshalJSON

func (s *Set) MarshalJSON() ([]byte, error)

func (*Set) ReadFrom

func (s *Set) ReadFrom(r io.Reader) (n int64, err error)

func (*Set) UnmarshalJSON

func (s *Set) UnmarshalJSON(data []byte) error

func (*Set) Update

func (s *Set) Update(id uint, description string) bool

func (*Set) WriteTo

func (s *Set) WriteTo(w io.Writer) (int64, error)

type Status

type Status string
const (
	Todo       Status = "todo"
	InProgress Status = "in-progress"
	Done       Status = "done"
)

Jump to

Keyboard shortcuts

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