forked from Mirrors/bubbletea
Add comment for Init() in simple example
This commit is contained in:
parent
7af3e0e9de
commit
816428c135
|
@ -36,6 +36,8 @@ type tickMsg time.Time
|
||||||
// we'll need is a simple integer.
|
// we'll need is a simple integer.
|
||||||
type model int
|
type model int
|
||||||
|
|
||||||
|
// Init optionally return an initial command we should run. In this case we
|
||||||
|
// want to start the timer.
|
||||||
func (m model) Init() tea.Cmd {
|
func (m model) Init() tea.Cmd {
|
||||||
return tick
|
return tick
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue