Help us shape the future of Go! Take the 2026 Go Developer Survey

typer

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 8 Imported by: 0

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) Update

func (tym TyperModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (TyperModel) View

func (tym TyperModel) View() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL