Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadChoice = errors.New("bad choice")
ErrBadChoice defines an error that represents an invalid choice made by the user.
Functions ¶
func Choose ¶
Choose function allows the user to make a choice from the given options with no default value.
func ChooseWithDefault ¶
ChooseWithDefault function allows the user to make a choice from the given options with an optional default value.
Types ¶
type Description ¶
type Description interface {
Description() string
}
Description interface defines a method for obtaining the description of a choice.
Click to show internal directories.
Click to hide internal directories.