Documentation ¶ Index ¶ type Prompter func New(in io.Reader, out io.Writer) *Prompter func (p *Prompter) AskInt(prompt string, defaultValue int) (int, error) func (p *Prompter) AskPassword(prompt string) (string, error) func (p *Prompter) AskString(prompt, defaultValue string) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Prompter ¶ type Prompter struct { // contains filtered or unexported fields } Prompter asks simple questions on stdin/stdout. func New ¶ func New(in io.Reader, out io.Writer) *Prompter func (*Prompter) AskInt ¶ func (p *Prompter) AskInt(prompt string, defaultValue int) (int, error) func (*Prompter) AskPassword ¶ added in v0.3.0 func (p *Prompter) AskPassword(prompt string) (string, error) func (*Prompter) AskString ¶ func (p *Prompter) AskString(prompt, defaultValue string) (string, error) Source Files ¶ View all Source files prompt.go Click to show internal directories. Click to hide internal directories.