Documentation ¶
Index ¶
- Constants
- type 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
- type KwArgs
- type Validator
Constants ¶
View Source
const ( ESC_REDBRT = "\033[31;1m" ESC_BRIGHT = "\033[1m" ESC_RESET = "\033[0m" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Console ¶
type Console struct {
PromptCaret string
}
func NewConsole ¶
func NewConsole() *Console
func (*Console) ConfirmValue ¶
func (*Console) GetDecimal ¶
func (*Console) GetDecimalWithLimits ¶
func (*Console) GetNumberWithLimits ¶
func (*Console) SelectValue ¶
select string value from certain values
Click to show internal directories.
Click to hide internal directories.