Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(pr PasswordReader) (string, error)
Run reads string from stdin and returns that string
Types ¶
type PasswordReader ¶
PasswordReader returns password read from a reader
type StdInPasswordReader ¶
type StdInPasswordReader struct { }
StdInPasswordReader default stdin password reader
func (StdInPasswordReader) ReadPassword ¶
func (pr StdInPasswordReader) ReadPassword() (string, error)
ReadPassword reads password from stdin
Click to show internal directories.
Click to hide internal directories.