package
0.4.4
Repository: https://github.com/ayonli/goext.git
Documentation: pkg.go.dev

# Packages

Additional functions for processing strings in multi-byte sequence.

# Functions

Capitalizes the given string, if `all` is true, all words are capitalized, otherwise only the first word will be capitalized.
Breaks the string into smaller chunks according to the given length.
Checks if the given string ends with the specified sub string.
Replaces the spaces between non-empty characters of the given string with hyphens (`-`).
Retrieves the first result (with sub matches) of matching the string against a regular expression.
Retrieves all results (with sub matches) of matching the string against a regular expression.
Pads the given string with another string (multiple times, if needed) until the resulting string reaches the final length.
Pads the given string with another string (multiple times, if needed) until the resulting string reaches the final length.
Returns a random string, the charset matches `/[0-9a-zA-Z]/`.
Executes a search for a match between a regular expression and the string, returning the index of the first match in the string.
Returns a section of the string selected from `start` to `end` (excluded).
Checks if the given string starts with the specified sub string.
Returns a section of the string selected from `start` to `end` (excluded).
Truncates the given string to the given length (including the ending `...`).
Extracts words (in latin characters) from the given string.