Documentation
¶
Index ¶
- Variables
- type Model
- func (m Model) CalculateAccuracy() float64
- func (m Model) CalculateRawTypingSpeed() float64
- func (m Model) CalculateTypingSpeed() float64
- func (m Model) GetDictionnaryModel(duration int) Model
- func (m Model) GetDictionnaryModelWithWords(words int) Model
- func (m Model) GetModelWithCustomTarget(target string) Model
- func (m Model) GetQuoteModel() Model
- func (m Model) GetTimeModelWithCustomTarget(initialTime int, target string) Model
- func (m Model) Init() tea.Cmd
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m Model) View() string
- type TypingMode
Constants ¶
This section is empty.
Variables ¶
View Source
var CouikASCII = `` /* 429-byte string literal not displayed */
View Source
var CouikASCII2 = `` /* 417-byte string literal not displayed */
View Source
var CouikASCII3 = `` /* 558-byte string literal not displayed */
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
Target string
Results []bool
Index int
Started bool
Quitting bool
ProgressBar progress.Model
TerminalWidth int
TerminalHeight int
// for better accuracy calculation
BackSpaceCount int
IsError bool
// for mode selecting
IsSelectingMode bool
Cursor int
Choices []string
Mode TypingMode
// state
State sessionState
// timer
StartTime time.Time
EndTime time.Time
Active bool
// words
InitialWords int
// contains filtered or unexported fields
}
func (Model) CalculateAccuracy ¶
func (Model) CalculateRawTypingSpeed ¶
func (Model) CalculateTypingSpeed ¶
func (Model) GetDictionnaryModel ¶
func (Model) GetDictionnaryModelWithWords ¶
func (Model) GetModelWithCustomTarget ¶
func (Model) GetQuoteModel ¶
func (Model) GetTimeModelWithCustomTarget ¶
type TypingMode ¶
type TypingMode int
Click to show internal directories.
Click to hide internal directories.