prompt

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Choose

func Choose(prompt string, list []string) int

Choose prompts for a single selection from `list`, returning in the index.

func Confirm

func Confirm(prompt string, args ...interface{}) bool

Confirm continues prompting until the input is boolean-ish.

func Password

func Password(prompt string, args ...interface{}) []byte

Password prompt.

func PasswordMasked

func PasswordMasked(prompt string, args ...interface{}) []byte

Password prompt with mask.

func String

func String(prompt string, args ...interface{}) string

String prompt.

func StringRequired

func StringRequired(prompt string, args ...interface{}) (s string)

String prompt (required).

Types

This section is empty.

Jump to

Keyboard shortcuts

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