app

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func New

func New(backend Backend, enable_debug bool) App

func (App) GenerateControls

func (a App) GenerateControls(isFirst, isLast bool) obj.Collection

func (App) Init

func (a App) Init() tea.Cmd

func (App) NextState

func (a App) NextState() App

func (App) PrevState

func (a App) PrevState() App

func (App) Update

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

func (App) View

func (a App) View() string

type AppState

type AppState = string

type Backend

type Backend struct {
	States       []AppState
	Constructors map[AppState]Constructor
	Finalizer    func(map[AppState]obj.Collection) obj.Collection
}

type Constructor

type Constructor = (func(obj.Collection) obj.Collection)

Jump to

Keyboard shortcuts

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