package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jan 2, 2021
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Load file if present, otherwise create and return empty map
Save persists the modified map to a file
Habit is a represenation of a repeated task and its metadata
Maintains a slice of timestamp occurrences
New creates a new habit and return a pointer to it
DaysSinceLastTick returns the integer number of days
that have passed since the last occurrence
Tick indicates that an instance of the habit occurred by appending to `occurrences`
HabitList is an array of Habit pointers
HabitMap is a map of string to Habit pointers
Source Files
¶
Click to show internal directories.
Click to hide internal directories.