diff options
Diffstat (limited to 'example/example.go')
-rw-r--r-- | example/example.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/example/example.go b/example/example.go index efe0d79..38d0627 100644 --- a/example/example.go +++ b/example/example.go @@ -21,12 +21,13 @@ package main import ( "bufio" - "code.google.com/p/gopass" "errors" "fmt" - "github.com/msteinert/pam" "log" "os" + + "code.google.com/p/gopass" + "github.com/msteinert/pam" ) func main() { @@ -35,9 +36,8 @@ func main() { case pam.PromptEchoOff: return gopass.GetPass(msg) case pam.PromptEchoOn: - fmt.Print(msg) - bio := bufio.NewReader(os.Stdin) - input, err := bio.ReadString('\n') + fmt.Print(msg + " ") + input, err := bufio.NewReader(os.Stdin).ReadString('\n') if err != nil { return "", err } |