Documentation
¶
Index ¶
- type TypingTest
- func (t TypingTest) GetAccuracyPercent() float32
- func (t TypingTest) GetCpm() float64
- func (t TypingTest) GetErrorCount() int
- func (t TypingTest) GetResultsAsString() string
- func (t TypingTest) GetTotalChars() int
- func (t TypingTest) GetWordCount() int
- func (t TypingTest) GetWpm() float64
- func (t TypingTest) TestComplete() bool
- func (t *TypingTest) UpdateWithBackspace(key tcell.Key)
- func (t *TypingTest) UpdateWithRegKey(key rune)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TypingTest ¶
type TypingTest struct { Text string Results []bool CurPos int StartTime time.Time EndTime time.Time }
func CreateNewTest ¶
func CreateNewTest(numOfWords int, wordSet string) TypingTest
func (TypingTest) GetAccuracyPercent ¶
func (t TypingTest) GetAccuracyPercent() float32
func (TypingTest) GetCpm ¶
func (t TypingTest) GetCpm() float64
func (TypingTest) GetErrorCount ¶
func (t TypingTest) GetErrorCount() int
func (TypingTest) GetResultsAsString ¶
func (t TypingTest) GetResultsAsString() string
func (TypingTest) GetTotalChars ¶
func (t TypingTest) GetTotalChars() int
func (TypingTest) GetWordCount ¶
func (t TypingTest) GetWordCount() int
func (TypingTest) GetWpm ¶
func (t TypingTest) GetWpm() float64
func (TypingTest) TestComplete ¶
func (t TypingTest) TestComplete() bool
func (*TypingTest) UpdateWithBackspace ¶
func (t *TypingTest) UpdateWithBackspace(key tcell.Key)
func (*TypingTest) UpdateWithRegKey ¶
func (t *TypingTest) UpdateWithRegKey(key rune)
Click to show internal directories.
Click to hide internal directories.