Versions in this module Expand all Collapse all v0 v0.4.0 Nov 2, 2023 Changes in this version + var ErrCanceled = errors.New("canceled") + func BeginLoading(format string, a ...any) + func BeginProgressBar(format string, a ...any) + func CancelLoading() + func CancelProgressBar() + func Clear() + func Error(format string, a ...any) + func FinishLoading() + func FinishProgressBar() + func Input(prompt string, validators ...Validator) (string, error) + func InputOptional(prompt string, validators ...Validator) (string, error) + func MultiSelect(msg string, options []string, selected []int) ([]bool, error) + func Print(format string, a ...any) + func PrintColor(color Color, format string, a ...any) + func Select(msg string, options []string) (int, error) + func SelectString(msg string, displayOptions []string, options []string) (string, error) + func Success(format string, a ...any) + func UpdateProgressBar(progress float64) + func Warn(format string, a ...any) + func YesNo(question string, defaultValue bool) (yes bool, err error) + type Color string + const Black + const BlackBold + const Blue + const BlueBold + const Cyan + const CyanBold + const Green + const GreenBold + const Magenta + const MagentaBold + const Red + const RedBold + const Reset + const White + const WhiteBold + const Yellow + const YellowBold + type Validator func(input interface{}) error + func MaxLength(n int) Validator + func MinLength(n int) Validator + func Regexp(regexp *regexp.Regexp, errorMsg string) Validator