mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
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:
@@ -19,8 +19,10 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
type tickMsg struct{}
|
||||
type errMsg error
|
||||
type (
|
||||
tickMsg struct{}
|
||||
errMsg error
|
||||
)
|
||||
|
||||
const (
|
||||
ccn = iota
|
||||
@@ -129,9 +131,7 @@ func (m model) Init() tea.Cmd {
|
||||
}
|
||||
|
||||
func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
var (
|
||||
cmds []tea.Cmd = make([]tea.Cmd, len(m.inputs))
|
||||
)
|
||||
var cmds []tea.Cmd = make([]tea.Cmd, len(m.inputs))
|
||||
|
||||
switch msg := msg.(type) {
|
||||
case tea.KeyMsg:
|
||||
|
||||
Reference in New Issue
Block a user