mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
Add comment for Init() in simple example
This commit is contained in:
@@ -36,6 +36,8 @@ type tickMsg time.Time
|
||||
// we'll need is a simple integer.
|
||||
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 {
|
||||
return tick
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user