Skip to content
Myr

Remove double import in textinput example + make a var name less weird

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Rocha · committed by Christian Rocha · parent 479a1ce · Browse files · 1 file+7 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−8 removed

  • other:+7 added−8 removed

1 file+7 added−8 removed

modified:examples/textinput/main.go+7 added-8 removed
6 unmodified lines
7 "fmt"8 "log"910 "github.com/charmbracelet/bubbles/textinput"11 input "github.com/charmbracelet/bubbles/textinput"11 tea "github.com/charmbracelet/bubbletea"12)1314func main() {
8 unmodified lines
23type tickMsg struct{}24type errMsg error2526type model struct {28 textInput input.Model27 textInput textinput.Model28 err error29}3031func initialModel() model {33 inputModel := input.NewModel()34 inputModel.Placeholder = "Pikachu"35 inputModel.Focus()36 inputModel.CharLimit = 15637 inputModel.Width = 2032 ti := textinput.NewModel()33 ti.Placeholder = "Pikachu"34 ti.Focus()35 ti.CharLimit = 15636 ti.Width = 203738 return model{40 textInput: inputModel,39 textInput: ti,40 err: nil,41 }42}43
35 unmodified lines