Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WordStats ¶
type WordStats struct { Checked chan string Corrected chan [2]string // contains filtered or unexported fields }
WordStats stores counters for words checked and words corrected
func RunStats ¶ added in v0.4.7
func RunStats() *WordStats
OpenWordStats creates a new wordStats struct
func (*WordStats) CalcAccuracy ¶
CalcAccuracy returns the "accuracy" for the current session accuracy is measured as how close to not correcting any words
func (*WordStats) CloseWordStats ¶
func (w *WordStats) CloseWordStats()
CloseWordStats closes the stats database cleanly
func (*WordStats) GetCheckedTotal ¶
GetCheckedTotal fetches the total number of checked words from the database
func (*WordStats) GetCorrectedTotal ¶
GetCorrectedTotal fetches the total number of corrected words from the database
func (*WordStats) GetStats ¶
GetStats returns top-level statistics about corrections as a formatted string
Click to show internal directories.
Click to hide internal directories.