Skip to content
Myr

More documentation edits

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Rocha · committed by Christian Rocha · parent a5e3822 · Browse files · 1 file+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−5 removed

  • other:+5 added−5 removed

1 file+5 added−5 removed

modified:tea.go+5 added-5 removed
46 unmodified lines
47// model and runs an optional command.48type Init func() (Model, Cmd)4950// Update is called when a message is received. Use it to inspect messages and,51// in repsonse, update the model and/or send a command.51// in repsonse, update the model and/or send a command.52type Update func(Msg, Model) (Model, Cmd)5354// View renders the program's UI: a string which will be printed to the55// terminal. The view is rendered after every Update.54// View renders the program's UI, which is just a string. The view is rendered55// after every Update.56type View func(Model) string5758// Program is a terminal user interface.59type Program struct {
19 unmodified lines
79// batchMsg is the internal message used to perform a bunch of commands. You80// can send a batchMsg with Batch.81type batchMsg []Cmd8283// WindowSizeMsg is used to report on the terminal size. It's sent once84// initially and then on every terminal resize.83// WindowSizeMsg is used to report on the terminal size. Its sent to Update84// once initially and then on every terminal resize.85type WindowSizeMsg struct {86 Width int87 Height int88}
176 unmodified lines