Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var I = stats{ History: []history{}, Words: map[string][]wordStat{}, }
I contains current statistics its initialized because json.Marshal sees the properties as null pointers not empty objects as it should
Functions ¶
func AddHistory ¶
func AddHistory(wpm float64)
AddHistory appends wpm with a timestamp to the history property
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.