Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶ added in v1.2.0
type Entry ¶
type Entry struct { Seconds uint16 LowMood uint8 HighMood uint8 AverageMood uint8 Body []byte `yaml:"-"` Path string `yaml:"-"` ModTime time.Time `yaml:"-"` }
Entry represents a single journal entry.
func NewEntry ¶
NewEntry reads the directory named by dir and either returns an existing Entry in that directory, or creates a new one if none exist.
func (*Entry) PromptForMetadata ¶
PromptForMetadata prints questions to w and sets the values of p based on values read from reader.
Click to show internal directories.
Click to hide internal directories.