Discover Packages
github.com/creachadair/getpass
package
module
Version:
v0.2.1
Opens a new window with list of versions in this module.
Published: Jan 17, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
README
README
¶
getpass
This repository provides a Go package to read passwords from the terminal with
echo disabled. This implementation relies on the x/sys/unix package to
read and write terminal settings.
Expand ▾
Collapse ▴
Documentation
¶
Package getpass supports reading text from a terminal with echo disabled,
suitable for prompting a user for a passphrase.
Prompt prints the prompt string to TTY then calls FReadline on it.
Readline is a shorthand for FReadline using the TTY.
TTY opens the controlling terminal of the current process if possible.
Source Files
¶
Directories
¶
cmd
Click to show internal directories.
Click to hide internal directories.