Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

v1 state

Back to all declarations

Entry

type

Entry holds a single mood log.

Value

v1.Entry

entries

[]v1.Entry

Value

<zero>

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

Open
OID
0dc513…2394:10
LogMood details

Inspect func

TotalEntries

func() int

TotalEntries returns the total number of mood logs on record.

Open
OID
0dc513…2394:11
TotalEntries details

Inspect func

MoodCount

func(mood string) int

MoodCount returns how many times the given mood has been logged.

Open
OID
0dc513…2394:12
MoodCount details

Inspect func

DominantMood

func() string

DominantMood returns the most-logged mood, or "none" if no entries.

Open
OID
0dc513…2394:13
DominantMood details

Inspect func
Entry : type =v1.Entry
entries : []v1.Entry =<zero>
validMoods : []string (len=7) Inspect
isValid : func(mood string) bool Inspect
emoji : func(mood string) string Inspect
bar : func(count int, total int) string Inspect
LogMood : func(mood string, note string) Inspect
TotalEntries : func() int Inspect
MoodCount : func(mood string) int Inspect
DominantMood : func() string Inspect
Render : func(path string) string Inspect