From 816428c135a6c837e73b3dbcb01f48b9816b0f9d Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Thu, 15 Oct 2020 16:19:13 -0400 Subject: [PATCH] Add comment for Init() in simple example --- examples/simple/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/simple/main.go b/examples/simple/main.go index f40523e..bd0bd57 100644 --- a/examples/simple/main.go +++ b/examples/simple/main.go @@ -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 }