Versions in this module Expand all Collapse all v0 v0.0.2 Dec 2, 2021 v0.0.1 Nov 25, 2021 Changes in this version + var ErrEmptyInput = errors.New("stdin: empty input") + var ErrTooManyTry = errors.New("stdin: too many try") + var Reader = bufio.NewReader(os.Stdin) + type Input struct + func New(prompt string) *Input + func (a *Input) Bool() (bool, error) + func (a *Input) Default(o string) *Input + func (a *Input) Duration() (time.Duration, error) + func (a *Input) Float() (float64, error) + func (a *Input) Format(o string) *Input + func (a *Input) Int() (int, error) + func (a *Input) MustBool() bool + func (a *Input) MustDuration() time.Duration + func (a *Input) MustFloat() float64 + func (a *Input) MustInt() int + func (a *Input) MustString() string + func (a *Input) MustTime() time.Time + func (a *Input) Prefix(o string) *Input + func (a *Input) Prompt(o string) *Input + func (a *Input) String() (string, error) + func (a *Input) Time() (time.Time, error) + func (a *Input) Try(o int) *Input