Documentation
¶
Index ¶
- type Item
- func (i *Item) Age() string
- func (i *Item) Complete()
- func (i *Item) Delete()
- func (i *Item) DueDiff() string
- func (i *Item) GenerateVirtualTags()
- func (i *Item) HasProject() bool
- func (i *Item) HasTag() bool
- func (i *Item) IsPending() bool
- func (i *Item) LastModifiedDiff() string
- func (i *Item) Matches(filter *parser.Filter) bool
- func (i *Item) Modify(mod *parser.Modification, modified bool)
- func (i *Item) SetUrgency()
- type List
- func (l *List) Add(task *Item) int
- func (l *List) Filter(filter *parser.Filter)
- func (l *List) Filtered() (tasks []*Item)
- func (l *List) GarbageCollect() (completed []*Item)
- func (l *List) GetByID(id int) *Item
- func (l *List) GetByUUID(uuid uuid.UUID) *Item
- func (l *List) Load(tasks []*Item)
- func (l *List) Set(task *Item)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct { Created time.Time `json:"created"` Modified time.Time `json:"modified,omitempty"` Completed time.Time `json:"completed,omitempty"` Due time.Time `json:"due,omitempty"` Description string `json:"description"` Status string `json:"status"` Project string `json:"project,omitempty"` Tags []string `json:"tags,omitempty"` VirtualTags []string `json:"-"` Notes []string `json:"notes,omitempty"` UUID uuid.UUID `json:"uuid"` Urgency float64 `json:"-"` ID int `json:"-"` // contains filtered or unexported fields }
A Item is an item
func (*Item) GenerateVirtualTags ¶
func (i *Item) GenerateVirtualTags()
GenerateVirtualTags generates virtual tags of task nolint:gocognit
func (*Item) HasProject ¶
HasProject is a helper if a task has a project
func (*Item) LastModifiedDiff ¶
LastModifiedDiff returns duration since last modification in shorthand
Click to show internal directories.
Click to hide internal directories.