mirror of https://github.com/docker/cli.git
8417e49792
- Add support for kubernetes for docker stack command - Update to go 1.9 - Add kubernetes to vendors - Print orchestrator in docker version command Signed-off-by: Vincent Demeester <vincent@sbr.pm> Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com> |
||
---|---|---|
.. | ||
LICENSE.txt | ||
OPENSOLARIS.LICENSE | ||
README.md | ||
pass.go | ||
terminal.go | ||
terminal_solaris.go |
README.md
getpasswd in Go
Retrieve password from user terminal or piped input without echo.
Verified on BSD, Linux, and Windows.
Example:
package main
import "fmt"
import "github.com/howeyc/gopass"
func main() {
fmt.Printf("Password: ")
// Silent. For printing *'s use gopass.GetPasswdMasked()
pass, err := gopass.GetPasswd()
if err != nil {
// Handle gopass.ErrInterrupted or getch() read error
}
// Do something with pass
}
Caution: Multi-byte characters not supported!