ui

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 8 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 application

func NewModel

func NewModel(app *app.App, tickRate int) Model

NewModel creates a new Model instance with the given app and tick rate

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the model, setting up the initial state and starting the tick command

func (Model) Update

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

Update handles incoming messages and updates the model state accordingly

func (Model) View

func (m Model) View() string

View renders the current state of the model as a string

Jump to

Keyboard shortcuts

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