ask

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Str

func Str(question Question) string

Str asks a question to the user expecting a string answer

Types

type Question

type Question struct {
	Description     string
	PossibleAnswers []string
	DefaultValue    string
	ReadDevice      io.Reader
}

Question struct defines a standarized way to ask questions to the end user, by default reads from stdin

Jump to

Keyboard shortcuts

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