chore: use go 1.16 (#449)

* chore: use go 1.16 and gofmt accordingly

* chore: also update examples and tuts to go 1.16
This commit is contained in:
Christian Rocha
2022-09-14 19:08:36 -04:00
committed by GitHub
parent bf3996256b
commit 1a0beff868
16 changed files with 33 additions and 26 deletions

View File

@@ -62,6 +62,7 @@ func initialModel() model {
return m
}
func (m model) Init() tea.Cmd {
return textinput.Blink
}
@@ -134,7 +135,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
func (m *model) updateInputs(msg tea.Msg) tea.Cmd {
var cmds = make([]tea.Cmd, len(m.inputs))
cmds := make([]tea.Cmd, len(m.inputs))
// Only text inputs with Focus() set will respond, so it's safe to simply
// update all of them here without any further logic.