Versions in this module Expand all Collapse all v0 v0.0.1 Dec 5, 2021 Changes in this version + const FileName + var ErrActivityNotFound = fmt.Errorf("there is no activity with given id") + var ErrEntryAlreadyExists = fmt.Errorf("entry with this title already exists") + type Activity struct + Context []string + ID int + Spans []*Span + Tags []string + Title string + func (a *Activity) Duration() time.Duration + func (a *Activity) LastDuration() time.Duration + func (a *Activity) Started() *Span + type Document struct + Activities []*Activity + LastKey int + type Span struct + Comment string + Start time.Time + Stop *time.Time + type Timespan time.Duration + func (t Timespan) Format() string + type Tracker struct + func New(fs afero.Fs) (*Tracker, error) + func (t *Tracker) Activity(id int) *Activity + func (t *Tracker) Add(title string, tags []string, contexts []string) (int, error) + func (t *Tracker) List(all bool) []*Activity + func (t *Tracker) Start(id int, comment string) error + func (t *Tracker) Stop(id int) error