package
0.0.18
Repository: https://github.com/jf-tech/go-corelib.git
Documentation: pkg.go.dev

# Functions

BuildFQDN builds an FQDN (dot delimited) from a slice of namelet strings.
BuildFQDN2 builds an FQDN from a slice of namelet strings and a given delimiter.
BuildFQDNWithEsc builds an FQDN (dot delimited) from a slice of namelet strings with proper escaping.
ByteIndexWithEsc searches for 'delim' inside 's' with escaping sequence taking into account.
ByteLenOfRunes returns byte length of a rune slice.
ByteSplitWithEsc is similar to SplitWithEsc but operating on []byte.
ByteUnescape unescapes a []byte sequence with an escape []byte sequence.
CopySlice copies a string slice.
CopyStrPtr copies a string pointer and its underlying string value, if set, into a new string pointer.
FirstNonBlank returns the first non-blank string value of the input strings, if any; or "" is returned.
HasDup detects whether there are duplicates existing in the src slice.
IndexWithEsc searches for 'delim' inside 's' with escaping sequence taking into account.
IsStrNonBlank checks if a string is blank or not.
IsStrPtrNonBlank checks if the value represented by a string pointer is blank or not.
LastNameletOfFQDN returns the last namelet of an FQDN delimited by default delimiter.
LastNameletOfFQDN2 returns the last namelet of an FQDN delimited by given delimiter.
LastNameletOfFQDNWithEsc returns the last namelet of an FQDN delimited by default delimiter, with escaping considered.
MapSlice returns a new string slice whose element is transformed from input slice's corresponding element by a transform func.
MergeSlices returns a new slice with two input slice content merged together.
NewRuneTrie creates a new RuneTrie.
NoErrMapSlice returns a new string slice whose element is transformed from input slice's corresponding element by a transform func.
RunePtr returns a pointer to a rune.
SplitWithEsc is similar to strings.Split but taking escape sequence into consideration.
StrPtr returns string pointer that points to a given string value.
StrPtrOrElse returns the string value of the string pointer if non-nil, or the default string value.
Unescape unescapes a string with escape sequence.

# Constants

FQDNDelimiter is the default FQDN delimiter.
FQDNEsc is the default escape char for FQDN.

# Structs

RuneTrie is a trie of strings.

# Type aliases

KeyMapper maps one rune or a segment of consecutive runes into a key for inserting into RuneTrie, and returns how many bytes needs to be advanced.