Rename input to textinput + DefaultModel is now NewModel

This commit is contained in:
Christian Rocha
2020-04-23 12:06:08 -04:00
parent a2ae308e68
commit bf2d13df66
3 changed files with 41 additions and 20 deletions

View File

@@ -149,7 +149,7 @@ func Update(msg tea.Msg, m Model) (Model, tea.Cmd) {
func View(model tea.Model) string {
m, ok := model.(Model)
if !ok {
return ""
return "could not perform assertion on model"
}
switch m.Type {
case Dots: