Documentation ¶
Overview ¶
Package channel provides utilities to create an Bubbletea model compatible with Go channels.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model[T any] struct { Channel chan T // OnInit is used to insert data into the channel and initialize the dispose method. OnInit func(chan T) func() error // contains filtered or unexported fields }
Model is the object used to implement a bubbletea model with a channel.
Click to show internal directories.
Click to hide internal directories.