xtea

package
v0.0.0-...-656dd94 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelCmd

func ChannelCmd[T any](ch chan T) tea.Cmd

ChannelCmd returns a tea.Cmd that waits for a value to be sent on the given channel.

Types

type WrappedModel

type WrappedModel[T interface {
	Init() tea.Cmd
	Update(tea.Msg) (T, tea.Cmd)
	View() string
}] struct {
	Model T
}

func (WrappedModel[T]) Init

func (j WrappedModel[T]) Init() tea.Cmd

func (WrappedModel[T]) Update

func (j WrappedModel[T]) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (WrappedModel[T]) View

func (j WrappedModel[T]) View() string

Jump to

Keyboard shortcuts

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