Move components over and update examples

This commit is contained in:
Christian Rocha
2020-05-12 17:05:16 -04:00
parent 4bf40fbe62
commit 82ddbb8e12
15 changed files with 1002 additions and 57 deletions

View File

@@ -54,7 +54,7 @@ func update(msg boba.Msg, model boba.Model) (boba.Model, boba.Cmd) {
// to the terminal.
func view(model boba.Model) string {
m, _ := model.(Model)
return fmt.Sprintf("Hi. This program will exit in %d seconds. To quit sooner press any key.", m)
return fmt.Sprintf("Hi. This program will exit in %d seconds. To quit sooner press any key.\n", m)
}
// This is a subscription which we setup in NewProgram(). It waits for one