Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NonEmptyText ¶
Types ¶
type Dialogue ¶
type Dialogue interface { // Ask weak confirmation to proceed the operation. // Prompt message could be like "hit any key to proceed". AskProceed(p Prompt) // Ask sticky confirmation to proceed the operation. AskCont(p Prompt, v VerifyCont) (c bool) // Ask text AskText(p Prompt, v VerifyText) (t string, cancel bool) // Ask secure text (text should not echo back) // Always read from os.Stdin AskSecure(p Prompt) (t string, cancel bool) }
type VerifyCont ¶
Return result in cont. Return valid = false when given t is invalid. The value cont is not used when valid == false.
type VerifyText ¶
Ensure the text is valid format or not.
Click to show internal directories.
Click to hide internal directories.