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

v0 state

Back to all declarations

Entry

type

Entry holds a single mood log.

Value

v0.Entry

entries

[]v0.Entry

Value

<zero>

shortAddr

func(addr .uverse.address) string
Open
OID
01b503…9f77:9
shortAddr details

Inspect func

bar

func(count int, total int) string
Open
OID
01b503…9f77:10
bar details

Inspect func

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
01b503…9f77:11
LogMood details

Inspect func

TotalEntries

func() int

TotalEntries returns the total number of mood logs on record.

Open
OID
01b503…9f77:12
TotalEntries details

Inspect func

MoodCount

func(mood string) int

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

Open
OID
01b503…9f77:13
MoodCount details

Inspect func

DominantMood

func() string

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

Open
OID
01b503…9f77:14
DominantMood details

Inspect func
Entry : type =v0.Entry
entries : []v0.Entry =<zero>
validMoods : []string (len=7) Inspect
isValid : func(mood string) bool Inspect
emoji : func(mood string) string Inspect
shortAddr : func(addr .uverse.address) 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