Versions in this module Expand all Collapse all v0 v0.4.3 Feb 10, 2024 v0.4.2 Aug 3, 2023 v0.4.1 Jul 28, 2023 v0.4.0 Jul 22, 2023 Changes in this version type Clock + Dur time.Duration v0.3.3 Jul 5, 2023 v0.3.2 Jun 2, 2023 v0.3.1 Jun 2, 2023 Changes in this version + func AllSwitch(int, *Switch) bool + func NonNilTask(_ int, sw *Switch) bool + type SelectSwitch = func(int, *Switch) bool type TimeLine + func (tl *TimeLine) Insert(at time.Time, to *Task, dtPast time.Duration, swPast SelectSwitch, ...) int + func (tl TimeLine) RootTask() *Task v0.3.0 Apr 11, 2023 Changes in this version + func AnyTask(sw *Switch) bool + func IsATask(t *Task) func(*Switch) bool + func SameTask(t *Task) func(*Switch) bool + func Warning(n Note) bool type Switch + func (s *Switch) AddNote(text string) (i int) + func (s *Switch) AddWarning(sym rune, text string) (i int) + func (s *Switch) DelNote(i int) + func (s *Switch) FilterNotes(f func(Note) bool) + func (s *Switch) SelectNotes(idxs []int, f func(Note) bool) []int v0.2.0 Apr 10, 2023 Changes in this version + const FileVersion + const IOTimeFmt + func AddDay(t time.Time, add int, loc *time.Location) time.Time + func HMSF(d time.Duration) (h, m, s int, f float64) + func Infinite(d time.Duration) bool + func LastDay(wd time.Weekday, from time.Time, loc *time.Location) time.Time + func NextDay(wd time.Weekday, from time.Time, loc *time.Location) time.Time + func ShiftAll(int, *Switch, time.Duration) bool + func ShiftNonNilTask(_ int, sw *Switch, _ time.Duration) bool + func StartDay(t time.Time, add int, loc *time.Location) time.Time + func StartMonth(t time.Time, add int, loc *time.Location) time.Time + func Write(w io.Writer, tl TimeLine) error + type Clock struct + D time.Duration + Location *time.Location + func ClockOf(t time.Time) Clock + func (c Clock) HMSF() (h, m, s int, f float64) + func (c Clock) On(day time.Time) time.Time + type Date struct + Day int + Location *time.Location + Month time.Month + Year int + func DateOf(t time.Time) (res Date) + func (d *Date) Start() time.Time + func (l *Date) Compare(r *Date) (d int) + type Note struct + Sym rune + Text string + type Switch struct + func (s *Switch) Duration() time.Duration + func (s *Switch) Next() *Switch + func (s *Switch) Notes() []Note + func (s *Switch) Task() *Task + func (s *Switch) When() time.Time + type Task struct + func (t *Task) Find(tip bool, path ...string) *Task + func (t *Task) FindString(p string) *Task + func (t *Task) Get(path ...string) *Task + func (t *Task) GetString(p string) *Task + func (t *Task) Is(in *Task) bool + func (t *Task) Match(tip bool, pattern ...string) (matches []*Task, err error) + func (t *Task) MatchString(p string) ([]*Task, error) + func (t *Task) Name() string + func (t *Task) Path() []string + func (t *Task) Root() *Task + func (t *Task) SetTitle(s string) + func (t *Task) String() string + func (t *Task) Subtasks() []*Task + func (t *Task) Title() string + func (t *Task) Visit(pre bool, do func(*Task) error) error + type TimeLine []*Switch + func Read(r io.Reader, root *Task) (tl TimeLine, err error) + func (tl *TimeLine) Clip(start, end time.Time) + func (tl *TimeLine) ClipAfter(t time.Time) + func (tl *TimeLine) ClipBefore(t time.Time) + func (tl *TimeLine) Del(at time.Time, pre, post func(int, *Switch, time.Duration) bool) + func (tl *TimeLine) DelSwitch(i int) + func (tl *TimeLine) Reschedule(i int, to time.Time) error + func (tl *TimeLine) Switch(at time.Time, to *Task) int + func (tl TimeLine) Duration(from, to, now time.Time, f func(*Switch) bool) (d time.Duration, s, e time.Time) + func (ts TimeLine) FirstTask() *Task + func (ts TimeLine) Pick(t time.Time) (int, *Switch) v0.1.1 Feb 23, 2023 v0.1.0 Nov 30, 2019