mirror of https://github.com/chzyer/readline.git
add readline.Password()
This commit is contained in:
parent
a5bc4d464a
commit
d85c8b4802
5
std.go
5
std.go
|
@ -53,6 +53,11 @@ func AddHistory(content string) error {
|
|||
return ins.SaveHistory(content)
|
||||
}
|
||||
|
||||
func Password(prompt string) ([]byte, error) {
|
||||
ins := getInstance()
|
||||
return ins.ReadPassword(prompt)
|
||||
}
|
||||
|
||||
// readline with global configs
|
||||
func Line(prompt string) (string, error) {
|
||||
ins := getInstance()
|
||||
|
|
Loading…
Reference in New Issue