Documentation ¶
Overview ¶
Package chooseui presents a simple console-based UI.
The user-interface is constructed with an array of strings, and will allow the user to choose one of them. The list may be filtered, and the user can cancel if they wish.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChooseUI ¶
type ChooseUI struct { // The items the user will choose from. Choices []string // contains filtered or unexported fields }
ChooseUI is the structure for holding our state.
func (*ChooseUI) SetupKeyBinding ¶
func (ui *ChooseUI) SetupKeyBinding()
SetupKeyBinding installs the global captures, and list-specific keybindings.
Click to show internal directories.
Click to hide internal directories.