typingTest

package
v0.0.0-...-ea7d579 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳