2021-04-08 20:26:57 -04:00
|
|
|
// +build windows darwin
|
|
|
|
|
|
|
|
package zenity
|
|
|
|
|
2021-04-29 11:05:28 -04:00
|
|
|
func password(opts options) (string, string, error) {
|
2021-04-29 11:55:44 -04:00
|
|
|
if opts.username {
|
|
|
|
return "", "", ErrUnsupported
|
|
|
|
}
|
2021-04-08 20:26:57 -04:00
|
|
|
opts.hideText = true
|
2021-04-29 11:05:28 -04:00
|
|
|
str, err := entry("Password:", opts)
|
|
|
|
return "", str, err
|
2021-04-08 20:26:57 -04:00
|
|
|
}
|