Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSecureString ¶
GetSecureString reads a password from the terminal
Types ¶
type DefaultTerminal ¶
type DefaultTerminal struct{}
DefaultTerminal implements real terminal operations
func (*DefaultTerminal) IsTerminal ¶
func (t *DefaultTerminal) IsTerminal(fd int) bool
IsTerminal checks if we are attached to a real terminal
func (*DefaultTerminal) ReadPassword ¶
func (t *DefaultTerminal) ReadPassword(fd int) ([]byte, error)
ReadPassword reads a password from the terminal
Click to show internal directories.
Click to hide internal directories.