Documentation ¶
Index ¶
- Variables
- func CreateKey(pv crypto.PrivateKey) *key.Key
- func PrintErrorMsg(format string, a ...interface{})
- func PrintInfoMsg(format string, a ...interface{})
- func PrintJsonData(data []byte)
- func PrintJsonObject(obj interface{})
- func PrintSuccessMsg(format string, a ...interface{})
- func PrintWarnMsg(format string, a ...interface{})
- func PromptInput(prompt string) string
- func PromptPassphrase(prompt string, confirmation bool) string
- func PromptPrivateKey(promp string, accountKey bool) (*key.Key, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Stdin = newTerminalPrompter()
Stdin holds the stdin line reader (also using stdout for printing prompts). Only this reader may be used for input because it keeps an internal buffer. var
Functions ¶
func PrintErrorMsg ¶
func PrintErrorMsg(format string, a ...interface{})
func PrintInfoMsg ¶
func PrintInfoMsg(format string, a ...interface{})
func PrintJsonData ¶
func PrintJsonData(data []byte)
func PrintJsonObject ¶
func PrintJsonObject(obj interface{})
func PrintSuccessMsg ¶
func PrintSuccessMsg(format string, a ...interface{})
func PrintWarnMsg ¶
func PrintWarnMsg(format string, a ...interface{})
func PromptPassphrase ¶
PromptPassphrase prompts the user for a passphrase. Set confirmation to true to require the user to confirm the passphrase.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.