Documentation ¶
Index ¶
- Constants
- type Console
- func (con *Console) ConfirmValue(msg, chkval string) error
- func (con *Console) Hidden() *Console
- func (con *Console) ReadDecimal(msg string, decimals int, defval any) (float64, error)
- func (con *Console) ReadDecimalWLimit(msg string, decimals int, defval any, vmin, vmax float64) (float64, error)
- func (con *Console) ReadNumber(msg string, defval any) (int64, error)
- func (con *Console) ReadNumberWLimit(msg string, defval any, vmin, vmax int64) (int64, error)
- func (con *Console) ReadValue(msg string, defval any) (string, error)
- func (con *Console) Regex(regex string) *Console
- func (con *Console) Required() *Console
- func (con *Console) SelectValue(msg string, values []string, defval any) (string, error)
- func (con *Console) SelectYesNo(msg string, defval any) (bool, error)
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 ¶
func NewConsole ¶
func NewConsole() *Console
func (*Console) ConfirmValue ¶
confirm imput value
func (*Console) ReadDecimal ¶
read numeric decimal value
func (*Console) ReadDecimalWLimit ¶
func (*Console) ReadNumber ¶
read numeric integer value
func (*Console) ReadNumberWLimit ¶
func (*Console) SelectValue ¶
select string value from certain values
Click to show internal directories.
Click to hide internal directories.