Documentation
¶
Index ¶
- Constants
- func GetConfirmation(prompt string, r *bufio.Reader, w io.Writer) (bool, error)
- func GetPassword(prompt string, buf *bufio.Reader) (pass string, err error)
- func GetSecretString(prompt string, buf *bufio.Reader) (secret string, err error)
- func GetString(prompt string, buf *bufio.Reader) (string, error)
Constants ¶
View Source
const MinPassLength = 8
MinPassLength is the minimum acceptable password length
Variables ¶
This section is empty.
Functions ¶
func GetConfirmation ¶
GetConfirmation will request user give the confirmation from stdin. "y", "Y", "yes", "YES", and "Yes" all count as confirmations. If the input is not recognized, it returns false and a nil error.
func GetPassword ¶
GetPassword will prompt for a password one-time (to sign a tx) It enforces the password length
func GetSecretString ¶
GetSecretString returns the secret string output of a given reader.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.