Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// Percent is a value from 0 to 1 that represents the current completion of the typing test
Percent float64
Progress *progress.Model
// Text is the randomly generated text for the user to type
Text []rune
// Typed is the text that the user has typed so far
Typed []rune
// Start and end are the start and end time of the typing test
Start time.Time
// Mistakes is the number of characters that were mistyped by the user
Mistakes int
// Score is the user's score calculated by correct characters typed
Score float64
// Theme is the current color theme
Theme *theme.Theme
}
Click to show internal directories.
Click to hide internal directories.