Retrieve password from user terminal input without echo
Verified on BSD, Linux, and Windows.
Example:
package main
import"fmt"import"github.com/howeyc/gopass"funcmain() {
fmt.Printf("Password: ")
pass:=gopass.GetPasswd() // Silent, for *'s use gopass.GetPasswdMasked()// Do something with pass
}Caution: Multi-byte characters not supported!