Versions in this module Expand all Collapse all v0 v0.0.1 Aug 12, 2022 Changes in this version + const ENABLE_ECHO_INPUT — windows/amd64 + const LineSep — darwin/amd64, linux/amd64, windows/amd64 + var ErrEmpty = errors.New("default value is not provided but input is empty") + var ErrInterrupted = errors.New("interrupted") + var ErrNotNumber = errors.New("input must be number") + var ErrOutOfRange = errors.New("input is out of range") + type Options struct + Default string + Hide bool + HideDefault bool + HideOrder bool + Loop bool + Mask bool + MaskDefault bool + MaskVal string + Required bool + ValidateFunc ValidateFunc + type UI struct + Reader io.Reader + Writer io.Writer + func DefaultUI() *UI + func (i *UI) Ask(query string, opts *Options) (string, error) + func (i *UI) Select(query string, list []string, opts *Options) (string, error) + type ValidateFunc func(string) error