Documentation
¶
Index ¶
- Variables
- func NewRecurrence(tags RecurrenceTags, opts ...func(Recurrence) Recurrence) todotxt.Hook
- func NewTagExpansion(unknownTags bool, tags map[string]qselect.DType) todotxt.Hook
- func NewTagExpansionWithNowFunc(unknownTags bool, tags map[string]qselect.DType, now func() time.Time) todotxt.Hook
- func WithNowFunc(now func() time.Time) func(r Recurrence) Recurrence
- func WithPreservePriority(preserve bool) func(r Recurrence) Recurrence
- type ClearOnDone
- type Recurrence
- type RecurrenceTags
- type TagExpansion
- type Tracker
- type Tracking
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoActiveTracking = errors.New("No active tracking")
View Source
var ErrNoRecurrenceBase = errors.New("when the recurrence tag is set, either the due tag or the threshold tag (or both) must be set")
Functions ¶
func NewRecurrence ¶
func NewRecurrence(tags RecurrenceTags, opts ...func(Recurrence) Recurrence) todotxt.Hook
func NewTagExpansion ¶
func WithNowFunc ¶
func WithNowFunc(now func() time.Time) func(r Recurrence) Recurrence
func WithPreservePriority ¶
func WithPreservePriority(preserve bool) func(r Recurrence) Recurrence
Types ¶
type ClearOnDone ¶
type ClearOnDone struct {
Clear []string
}
func (ClearOnDone) OnValidate ¶
func (c ClearOnDone) OnValidate(list *todotxt.List, event todotxt.ValidationEvent) error
type Recurrence ¶
type Recurrence struct {
// contains filtered or unexported fields
}
func (Recurrence) OnValidate ¶
func (r Recurrence) OnValidate(list *todotxt.List, event todotxt.ValidationEvent) error
type RecurrenceTags ¶
type TagExpansion ¶
type TagExpansion struct {
// contains filtered or unexported fields
}
func (TagExpansion) OnValidate ¶
func (t TagExpansion) OnValidate(list *todotxt.List, event todotxt.ValidationEvent) error
Click to show internal directories.
Click to hide internal directories.