Documentation
¶
Index ¶
- Variables
- func OptionBackgroundColor(color Color) func(config *Config)
- func OptionSelectedTextBold() func(config *Config)
- func OptionSelectedTextColor(color Color) func(config *Config)
- func OptionTextColor(color Color) func(config *Config)
- func Pick(question string, choicesToPickFrom []string, options ...Option) (string, int, error)
- type Color
- type Config
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoChoiceSelected is the error returned when no choices have been selected. // This can happen when the user quits the application by terminating the process (e.g. CTRL+C) // or by exiting the application through the ESC key or the left arrow key. ErrNoChoiceSelected = errors.New("no choice selected") // ErrNoChoice is the error returned when there are no choices to pick from ErrNoChoice = errors.New("no choices to choose from") )
Functions ¶
func OptionBackgroundColor ¶
func OptionSelectedTextBold ¶
func OptionSelectedTextBold() func(config *Config)
func OptionSelectedTextColor ¶
func OptionTextColor ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.