func unixReadPassword(prompt string) (password string, err error) { binPass, err := readpass.ReadPass(prompt) fmt.Printf("\n") if err == nil { password = string(binPass) } return }
func unixReadPasswordBytes(prompt string) (password []byte, err error) { password, err = readpass.ReadPass(prompt) fmt.Printf("\n") if err != nil { password = nil } return }