Documentation
¶
Overview ¶
Package journal resolves and creates periodic journal log files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoPeriodLogs ¶
AutoPeriodLogs returns paths for period logs (weekly, monthly, yearly) that should be auto-opened because today is the start of that period and the relevant template exists. Returns nil when cfg.AutoJournalPeriods is false.
func GetLog ¶
GetLog returns the path to the log for the given date and period, creating it if needed.
func ReviewPaths ¶
ReviewPaths returns the set of files relevant to reviewing the given period. Sub-period files (one level finer) and the previous period summary are only opened if they already exist. Only the current period summary is created.
Types ¶
type Period ¶
type Period int
Period represents the granularity of a journal log.
func ParsePeriod ¶
ParsePeriod converts a user-facing string to a Period.