package
5.2.0
Repository: https://github.com/prysmaticlabs/prysm.git
Documentation: pkg.go.dev

# Functions

DefaultAndValidatePrompt prompts the user for any text and expects it to fulfill a validation function.
DefaultPrompt prompts the user for any text and performs no validation.
InputPassword with a custom validator along capabilities of confirming the password and reading it from disk if a specified flag is set.
IsValidUnicode checks if an input string is a valid unicode string comprised of only letters, numbers, punctuation, or symbols.
NotEmpty is a validation function to make sure the input given isn't empty and is valid unicode.
PasswordPrompt prompts the user for a password, that repeatedly requests the password until it qualifies the passed in validation function.
ValidateConfirmation makes sure the entered text is the user confirming.
ValidateNumber makes sure the entered text is a valid number.
ValidatePasswordInput validates a strong password input for new accounts, including a min length, at least 1 number and at least 1 special character.
ValidatePhrase checks whether the user input is equal to the wanted phrase(s).
ValidatePrompt requests the user for text and expects the user to fulfill the provided validation function.
ValidateYesOrNo ensures the user input either Y, y or N, n.

# Variables

PasswordReader has passwordReaderFunc as the default but can be changed for testing purposes.