Versions in this module Expand all Collapse all v0 v0.1.0 Jan 28, 2023 Changes in this version + const ESC_BRIGHT + const ESC_REDBRT + const ESC_RESET + type Console struct + PromptCaret string + func NewConsole() *Console + func (con *Console) ConfirmValue(msg string, val string, opts *InputOpts) error + func (con *Console) GetDecimal(msg string, decimals int, opts *InputOpts) (float, error) + func (con *Console) GetDecimalWithLimits(msg string, decimals int, vmin float, vmax float, opts *InputOpts) (float, error) + func (con *Console) GetNumber(msg string, opts *InputOpts) (int, error) + func (con *Console) GetNumberWithLimits(msg string, vmin int, vmax int, opts *InputOpts) (int, error) + func (con *Console) GetValue(msg string, opts *InputOpts) (string, error) + func (con *Console) SelectValue(msg string, values []string, opts *InputOpts) (string, error) + func (con *Console) SelectYesNo(msg string, opts *InputOpts) (bool, error) + type InputOpts = struct + Default any + Hidden bool + Regex string + Required bool + Trials int + type KwArgs = map[string]any + type Validator = func(string) (any, error) Other modules containing this package github.com/exonlabs/go-utils