//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !zos package mnemonic import ( "os" "golang.org/x/term" ) // readWithoutEcho reads one line from the terminal on standard input // with echo turned off, through term.ReadPassword, on the systems // prompt_unix.go is not built for, such as Windows. func readWithoutEcho() (string, error) { typed, err := term.ReadPassword(int(os.Stdin.Fd())) return string(typed), err }