Documentation ¶
Overview ¶
Package interactive implements all the functions to interactively interact with users
Index ¶
- func AskNumberInRange(start, end int, format string, a ...interface{}) (int, error)
- func AskQuestion(format string, a ...interface{}) (string, error)
- func AskQuestionNoEcho(format string, a ...interface{}) (string, error)
- func AskYNQuestion(defaultAnswer, format string, a ...interface{}) (string, error)
- func GetPassphrase(message string, retries int) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskNumberInRange ¶
AskNumberInRange prompts the user expecting an answer that is a number between start and end.
func AskQuestion ¶
AskQuestion prompts the user with a question and return the response
func AskQuestionNoEcho ¶
AskQuestionNoEcho works like AskQuestion() except it doesn't echo user's input
func AskYNQuestion ¶
AskYNQuestion prompts the user expecting an answer that's either "y", "n" or a blank, in which case defaultAnswer is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.