12 lines
250 B
Go
12 lines
250 B
Go
package zenity
|
|
|
|
import "fmt"
|
|
|
|
func password(opts options) (string, string, error) {
|
|
if opts.username {
|
|
return "", "", fmt.Errorf("%w: username", ErrUnsupported)
|
|
}
|
|
opts.hideText = true
|
|
str, err := entry("Password:", opts)
|
|
return "", str, err
|
|
}
|