app

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitialModel

func InitialModel() model.Model

InitialModel creates the initial model state

func TickCmd

func TickCmd() tea.Cmd

TickCmd returns a command that sends tick messages

func Update

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

Update handles all state updates

func View

func View(m model.Model) string

View renders the entire application view

Types

type App

type App struct {
	Model model.Model
}

App wraps the model and implements tea.Model interface

func New

func New() *App

New creates a new App instance

func (*App) Init

func (a *App) Init() tea.Cmd

Init implements tea.Model

func (*App) Update

func (a *App) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements tea.Model

func (*App) View

func (a *App) View() string

View implements tea.Model

Jump to

Keyboard shortcuts

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