prompt

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL