Documentation ¶
Index ¶
Constants ¶
View Source
const FileName = "gotrack.json"
Variables ¶
View Source
var ( ErrEntryAlreadyExists = fmt.Errorf("entry with this title already exists") ErrActivityNotFound = fmt.Errorf("there is no activity with given id") )
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct { ID int `json:"id"` Title string `json:"title"` Tags []string `json:"tags"` Context []string `json:"context"` Spans []*Span `json:"spans"` }
func (*Activity) LastDuration ¶
Click to show internal directories.
Click to hide internal directories.