Stub out ReadPassword on plan9 and solaris to fix compilation

This commit is contained in:
Nick Craig-Wood
2016-02-21 10:31:53 +00:00
parent ea11f5ff3d
commit 700e47d6e2
3 changed files with 38 additions and 12 deletions
+12
View File
@@ -0,0 +1,12 @@
// ReadPassword for OSes which are not supported by golang.org/x/crypto/ssh/terminal
// See https://github.com/golang/go/issues/14441 - plan9
// https://github.com/golang/go/issues/13085 - solaris
// +build solaris plan9
package fs
// ReadPassword reads a password with echoing it to the terminal.
func ReadPassword() string {
return ReadLine()
}