Documentation
¶
Index ¶
Constants ¶
View Source
const MAXLINES = 3
View Source
const TYPER_INSTRUCTIONS = "CTRL+C to quit program\nESC to open settings"
Variables ¶
View Source
var COMMONWORDS = []string{}
View Source
var MAXCHARPERLINE = 60
max characters per line is either 60 or if screen is smaller than do screen width - 16 (padding on each side)
View Source
var WORD_BANK_MAP = map[int][]string{}
Functions ¶
This section is empty.
Types ¶
type TyperModel ¶
type TyperModel struct {
// analytics
TotalWords int
TotalCorrect int
TotalTyped int
// contains filtered or unexported fields
}
func NewTyper ¶
func NewTyper() TyperModel
func (TyperModel) GetLines ¶
func (tym TyperModel) GetLines() [][]string
func (TyperModel) Init ¶
func (tym TyperModel) Init() tea.Cmd
func (TyperModel) View ¶
func (tym TyperModel) View() string
Click to show internal directories.
Click to hide internal directories.