Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Commit

Permalink
Update README with new GetPasswd return
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmaguire committed Feb 10, 2016
1 parent 4447638 commit d58855e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -13,8 +13,14 @@ import "github.com/howeyc/gopass"

func main() {
fmt.Printf("Password: ")
pass := gopass.GetPasswd() // Silent, for *'s use gopass.GetPasswdMasked()
// Do something with pass

// Silent. For printing *'s use gopass.GetPasswdMasked()
pass, err := gopass.GetPasswd()
if err != nil {
// Handle gopass.ErrInterrupted or getch() read error
}

// Do something with pass
}
```

0 comments on commit d58855e

Please sign in to comment.