terminal

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: GPL-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ask

func Ask(question string, args ...any) string

Ask asks a question and returns the answer Arguments:

question: The question to ask
args: Optional arguments (
	1. bool: If the answer can be empty
	2. string: The error message to print when the answer is empty
)

func AskProtected

func AskProtected(question string) string

func RepeatAsk

func RepeatAsk(question string, validAnswers []string, cancel bool) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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