Entry
typeEntry holds a single mood log.
Value
v1.Entry
entries
[]v1.EntryValue
<zero>
validMoods
[]string- OID
- 0bd466…823c:5
validMoods details
isValid
func(mood string) bool- OID
- 0bd466…823c:6
isValid details
emoji
func(mood string) string- OID
- 0bd466…823c:8
emoji details
bar
func(count int, total int) string- OID
- 0bd466…823c:9
bar details
LogMood
func(mood string, note string)LogMood records the caller's current mood with an optional note. mood must be one of: happy sad excited calm anxious angry neutral
- OID
- 0bd466…823c:10
LogMood details
TotalEntries
func() intTotalEntries returns the total number of mood logs on record.
- OID
- 0bd466…823c:11
TotalEntries details
MoodCount
func(mood string) intMoodCount returns how many times the given mood has been logged.
- OID
- 0bd466…823c:12
MoodCount details
DominantMood
func() stringDominantMood returns the most-logged mood, or "none" if no entries.
- OID
- 0bd466…823c:13
DominantMood details
Render
func(path string) string- OID
- 0bd466…823c:14
Render details
Entry
:
type
=v1.Entry
entries
:
[]v1.Entry
=<zero>