package
module
Version:
v0.0.0-...-ee9b272
Opens a new window with list of versions in this module.
Published: Dec 21, 2014
License: BSD-3-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
getpass
Go library that provides support for reading passwords on the command-line.
- Simple, easy to use
- Supports POSIX systems via
termios
API and Windows via _getch
API
Installation
$ go get github.com/dgiagio/getpass
Example usage
import (
"fmt"
"github.com/dgiagio/getpass"
)
pass, _ := getpass.GetPassword("Password: ")
fmt.Printf("Entered password: %s\n", pass)
Documentation
¶
Package getpass provides support for reading passwords on the command-line.
GetPassword displays a prompt to the user and reads the password from
standard input without echoing on the screen.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.