interview

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChooseMultiStrings

func ChooseMultiStrings(question string, options []string) (results []string, err error)

ChooseMultiStrings queries the user to choose from a list of strings allowing multiple selection

func ChooseOneString

func ChooseOneString(question string, options []string) (result string, err error)

ChooseOneString queries the user to choose one string from a list of strings

func Confirm

func Confirm(question string, defaultValue bool) (result bool, err error)

Confirm allows querying for confirmation with a default value that is used when no answer is typed.

func ConfirmNoDefault added in v2.3.0

func ConfirmNoDefault(question string) (result bool, err error)

ConfirmNoDefault allows querying for confirmation without a default value, so the user needs to answer the question explicitly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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