Add comment for Init() in simple example

This commit is contained in:
Christian Rocha 2020-10-15 16:19:13 -04:00
parent 7af3e0e9de
commit 816428c135
No known key found for this signature in database
GPG Key ID: D6CC7A16E5878018
1 changed files with 2 additions and 0 deletions

View File

@ -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
}