package
0.1.0
Repository: https://github.com/bertjohnson/util.git
Documentation: pkg.go.dev

# Functions

Base58ToHex converts a base58-encoded string to hex.
Capitalize capitalizes the first letter of a string.
EnsureAlphanumeric removes any non-alphanumeric characters from a string.
ExtractLinks returns links from a plain/text body.
ExtractLinksWithValidator returns links from a plain/text body, using a custom function to validate links.
FoldWhitespace normalizes whitespace.
FormatString formats a string, replacing % numeric expressions with their corresponding array values.
HexToBase58 converts a hex-encoded string to base58.
IsAlphanumeric returns true if the string consists of only letters and numbers.
IsWhitespace returns true if the rune is whitespace.
NormalizeCharSet replaces aliased character sets with their more common representation.
NormalizePhone formats phone numbers consistently.
Permutations returns all permutations made through combinations of input nodes.
RemoveAny removes any matching needle characters.
RemoveUnreadableCharacters removes non-human readable characters.
RemoveWhitespace removes whitespace.
ReturnAllBetween returns all substrings in haystack between startNeedle and endNeedle.
ReturnAllBetweenArray returns all substrings in haystack between entries of startNeedles and entries of endNeedles.
ReturnAllBetweenInsensitive returns all substrings in haystack between startNeedle and endNeedle, case insensitive.
ReturnAndRemoveAllBetween returns all substrings in haystack between startNeedle and endNeedle, and removes them.
ReturnBetween returns the substring in haystack between startNeedle and endNeedle.
ReturnBetweenInsensitive returns the substring in haystack between startNeedle and endNeedle, case insensitive.
SplitAny splits haystack on any matching needle characters.