Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stack ¶
type Stack[T any] struct { S []T // Slice // contains filtered or unexported fields }
Using Generics to define Type in Stake to Use Structs, too.
type SubModel ¶
type SubModel interface { tea.Model // Init is the first function that will be called. It returns an optional // initial command. To not perform an initial command return nil. Init() tea.Cmd // Update is called when a message is received. Use it to inspect messages // and, in response, update the model and/or send a command. DoUpdate(tea.Msg, *data.StateBag) (SubModel, tea.Cmd) // RenderView renders the program's UI, which is just a string. The view is // rendered after every Update. RenderView(*data.StateBag) string }
Click to show internal directories.
Click to hide internal directories.