input

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Identifier string = "user-input"
)

Variables

View Source
var CreateFakeUserInput = func() *fakeUserInputImpl {
	return &fakeUserInputImpl{}
}

Functions

This section is empty.

Types

type UserInput

type UserInput interface {
	AskYesNoQuestion(question string) (bool, error)
	AskForNumber() (int, error)
	AskForNumberWithDefault() (int, error)
	PressAnyKeyToContinue() error
}

func New

func New() UserInput

Jump to

Keyboard shortcuts

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