# getpasswd in Go [](https://godoc.org/github.com/howeyc/gopass) [](http://travis-ci.org/howeyc/gopass)
Retrieve password from user terminal or piped input without echo.
Verified on BSD, Linux, and Windows.
Example:
```go
packagemain
import"fmt"
import"github.com/howeyc/gopass"
funcmain(){
fmt.Printf("Password: ")
// Silent. For printing *'s use gopass.GetPasswdMasked()
pass,err:=gopass.GetPasswd()
iferr!=nil{
// Handle gopass.ErrInterrupted or getch() read error