prompt

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: MIT Imports: 5 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) 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