package
1.11.26
Repository: https://github.com/hedzr/cmdr.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

EraseAnyWSs eats any whitespaces inside the giving string s.
EscapeCompletionTitle escapes ';' character for zsh completion system.
GetTtySize returns the window size in columns and rows in the active console window.
HasOrderPrefix tests whether an order prefix is present or not.
IsDigitHeavy tests if the whole string is digit.
IsTtyEscaped detects a string if it contains ansi color escaped sequences.
JaroWinklerDistance returns an calculator for two strings distance metric, with Jaro-Winkler algorithm.
JWWithThreshold sets the threshold for Jaro-Winkler algorithm.
Launch executes a command setting both standard input, output and error.
LaunchEditor launches the specified editor.
LaunchEditorWith launches the specified editor with a filename.
Max return the larger one of int.
Min return the less one of int.
ParseComplex converts a string to complex number.
ParseComplexX converts a string to complex number.
PressAnyKeyToContinue lets program pause and wait for user's ANY key press in console/terminal.
PressEnterToContinue lets program pause and wait for user's ENTER key press in console/terminal.
RandomStringPure generate a random string with length specified.
ReadPassword reads the password from stdin with safe protection.
ReverseAnySlice reverse any slice/array.
ReverseStringSlice reverse a string slice.
SortAsDottedSlice sorts a slice by which is treated as a dot-separated path string.
SortAsDottedSliceReverse sorts a slice by which is treated as a dot-separated path string.
Soundex returns the english word's soundex value, such as: 'tags' => 't322'.
StripEscapes removes any ansi color escaped sequences from a string.
StripOrderPrefix strips the prefix string fragment for sorting order.
StripPrefix strips the prefix 'p' from a string 's'.
StripQuotes strips single or double quotes around a string.

# Constants

StringMetricFactor for JaroWinklerDistance algorithm.

# Variables

SavedOsArgs is a copy of os.Args, just for testing.

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author