Skip to content
Myr

Add comment for Init() in simple example

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 7af3e0e · Browse files · 1 file+2 added−0 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+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:examples/simple/main.go+2 added
34 unmodified lines
35// program, so often it's a struct. For this simple example, however, all36// we'll need is a simple integer.37type model int3839// Init optionally return an initial command we should run. In this case we40// want to start the timer.41func (m model) Init() tea.Cmd {42 return tick43}44
28 unmodified lines