Documentation ¶
Index ¶
- func Apply(elements *list.List, fn ElementFunc) (err error)
- func ApplyOrdered(elements *list.List, fn ElementFunc) (err error)
- func GetConfirmedPassword() []byte
- func GetPassword() []byte
- func HasArgs(args []string, length int) bool
- func OpenDefault(fileOrURL string) error
- func Printf(format string, a ...any)
- func Println(a ...any)
- func ShortPath(path string) string
- func ShowError(err error)
- func TerminalWidth() int
- func ValidatePassword(password1 []byte, password2 []byte) bool
- type ElementFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyOrdered ¶
func ApplyOrdered(elements *list.List, fn ElementFunc) (err error)
func GetConfirmedPassword ¶
func GetConfirmedPassword() []byte
func GetPassword ¶
func GetPassword() []byte
func OpenDefault ¶
OpenDefault opens the specified file or URL with the default associated application.
You may use it to open a web site:
OpenDefault("https://google.com")
Or open a file:
OpenDefault("/home/bob/story.txt")
Or open a folder in your default file manager:
OpenDefault("/home/bob")
func TerminalWidth ¶
func TerminalWidth() int
TerminalWidth Returns the width of the terminal window. Defaults to 80 if the width cannot be determined.
func ValidatePassword ¶
Types ¶
type ElementFunc ¶
Directories ¶
Path | Synopsis |
---|---|
Package color is an ANSI color package to output colorized or SGR defined output to the standard output.
|
Package color is an ANSI color package to output colorized or SGR defined output to the standard output. |
Package isatty implements interface to isatty
|
Package isatty implements interface to isatty |
Package liner implements a simple command line editor, inspired by linenoise (https://github.com/antirez/linenoise/).
|
Package liner implements a simple command line editor, inspired by linenoise (https://github.com/antirez/linenoise/). |
Create & Generate text based table
|
Create & Generate text based table |
Click to show internal directories.
Click to hide internal directories.