jason 075d766964 first | 3 tahun lalu | |
---|---|---|
.. | ||
example | 3 tahun lalu | |
.gitignore | 3 tahun lalu | |
LICENSE | 3 tahun lalu | |
LICENSE_WINDOWS | 3 tahun lalu | |
Readme.md | 3 tahun lalu | |
speakeasy.go | 3 tahun lalu | |
speakeasy_unix.go | 3 tahun lalu | |
speakeasy_windows.go | 3 tahun lalu |
This package provides cross-platform Go (#golang) helpers for taking user input
from the terminal while not echoing the input back (similar to getpasswd
). The
package uses syscalls to avoid any dependence on cgo, and is therefore
compatible with cross-compiling.
Multi-byte unicode characters work successfully on Mac OS X. On Windows, however, this may be problematic (as is UTF in general on Windows). Other platforms have not been tested.
The code herein was not written by me, but was compiled from two separate open source packages. Unix portions were imported from gopass, while Windows portions were imported from the CloudFoundry Go CLI's Windows terminal helpers.
The license for the windows portion has been copied exactly from the source (though I attempted to fill in the correct owner in the boilerplate copyright notice).