package
0.0.0-20240615164402-742bdff4c8c2
Repository: https://github.com/naive-x/utils.git
Documentation: pkg.go.dev

# README

stringsutil

The package contains various helpers to interact with strings

# Functions

After extracts the string after a from value returns value as is and error if a is not found.
Before extracts the string before a from value returns value as is and error if a is not found.
Between extracts the string between a and b returns value as is and error if a or b are not found.
ContainsAny returns true if s contains any specified substring.
ContainsAnyI returns true if s contains any specified substring (case-insensitive).
No description provided by the author
EqualFoldAny returns true if s is equal to any specified substring.
HasPrefixAny checks if the string starts with any specified prefix.
HasPrefixAnyI is case insensitive HasPrefixAny.
HasPrefixI is case insensitive HasPrefix.
HasSuffixAny checks if the string ends with any specified suffix.
HasSuffixI is case insensitive HasSuffix.
IndexAny returns the index of the first instance of any of the specified substrings in s, or -1 if s does not contain any of the substrings.
IndexAt look for a substring starting at position x.
IsCTRLC checks if the string is CTRL+C.
IsPrintable checks if the strings is made only of printable characters.
Join concatenates the elements of its first argument to create a single string.
LongestRepeatingSequence finds the longest repeating non-overlapping sequence in a string.
No description provided by the author
No description provided by the author
ReplaceAll returns a copy of the string s with all instances of old incrementally replaced by new.
Reverse the string.
SlideWithLength returns all the strings of the specified length while moving forward the extraction window.
SplitAny string by a list of separators.
TrimPrefixAny trims all prefixes from string in order.
TrimSuffixAny trims all suffixes from string in order.
Truncate a string to max length.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author