Documentation
¶
Index ¶
Constants ¶
View Source
const ( Historyy fileOption = iota Config Stats )
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶ added in v0.1.1
func Save ¶
func Save(test TestResult) error
Save saves test result to $CONFIG_PATH/couik/history.json
Types ¶
type History ¶
type History []TestResult
func GetHistory ¶
GetHistory retrieves the history of your typing tests
type Quote ¶ added in v0.1.1
type Quote struct {
Text string `json:"text"`
Source string `json:"source"`
Length int `json:"length"`
}
func GetQuotes ¶ added in v0.1.1
func GetQuotes(lang Language, category QuoteCategory) []Quote
GetQuotes loads quotes the embedded data and returns a list of quotes according to the language and category
type QuoteCategory ¶ added in v0.1.3
type QuoteCategory int
const ( Small QuoteCategory = iota Mid Thicc )
type TestResult ¶
type TypingData ¶ added in v0.1.1
func LoadEmbeddedQuotes ¶ added in v0.1.1
func LoadEmbeddedQuotes(lang Language) TypingData
LoadEmbeddedQuotes loads data from json files according to the language (english and french for now)
Click to show internal directories.
Click to hide internal directories.