Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMasterPasswordMustNotBeEmpty = errors.New("master password must not be empty") ErrMasterPasswordIncorrect = errors.New("master password incorrect") )
Functions ¶
func CopyToClipboard ¶
func CopyToClipboard(s string)
CopyToClipboard - uses ANSI OSC 52 to copy text to clipboard, it may not work on some terminals (see https://github.com/ojroques/vim-oscyank/blob/main/README.md).
func ReadLine ¶
ReadLine - read from stdin and handles backspace. Inspired from https://gist.github.com/artyom/a59e2707976124f387f5
func ReadPassword ¶
ReadPassword - read password from stdin and handle CTRL+C to restore. Inspired from https://groups.google.com/g/golang-nuts/c/DCl8xUJMJJ0.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.