Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InputBool ¶
InputBool prompts the user for a boolean input and returns it
The default value is used if the user doesn't enter anything The message should not contain the "(y/n)" part
func InputSelect ¶
InputSelect prompts the user to select an option from a list
func InputWithValidation ¶
func InputWithValidation(message string, errorMessage string, validation func(string) bool) (string, error)
Prompt the user for a string input and validate it If the input is not valid, the error message is displayed and the user is prompted again The validation function should return true if the input is valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.