tui

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 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 Model

type Model struct {
	// contains filtered or unexported fields
}

Model represents the state of the typing test application

func NewModel

func NewModel(duration int, language string) (*Model, error)

NewModel initializes a new Model instance with the specified duration and language

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the model and starts the tick command for periodic updates

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update processes incoming messages and updates the model accordingly

func (Model) View

func (m Model) View() string

View renders the current state of the Model as a string for display

Jump to

Keyboard shortcuts

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