package speakeasy
import "github.com/bgentry/speakeasy"
Index ¶
- func Ask(prompt string) (password string, err error)
- func FAsk(wr io.Writer, prompt string) (password string, err error)
Functions ¶
func Ask ¶
Ask the user to enter a password with input hidden. prompt is a string to display before the user's input. Returns the provided password, or an error if the command failed.
func FAsk ¶
FAsk is the same as Ask, except it is possible to specify the file to write the prompt to. If 'nil' is passed as the writer, no prompt will be written.
Source Files ¶
speakeasy.go speakeasy_unix.go
Directories ¶
Path | Synopsis |
---|---|
example |
- Version
- v0.1.0
- Published
- Apr 17, 2017
- Platform
- darwin/amd64
- Imports
- 6 packages
- Last checked
- now –
Tools for package owners.