package
1.0.2
Repository: https://github.com/ravior/gserver.git
Documentation: pkg.go.dev

# Functions

IsMatch checks whether given bytes <src> matches <pattern>.
IsMatchString checks whether given string <src> matches <pattern>.
Match return bytes slice that matched <pattern>.
MatchAll return all bytes slices that matched <pattern>.
MatchAllString return all strings that matched <pattern>.
MatchString return strings that matched <pattern>.
Quote quotes <s> by replacing special chars in <s> to match the rules of regular expression pattern.
Replace all matched <pattern> in bytes <src> with bytes <replace>.
ReplaceFunc replace all matched <pattern> in bytes <src> with custom replacement function <replaceFunc>.
ReplaceFuncMatch replace all matched <pattern> in bytes <src> with custom replacement function <replaceFunc>.
ReplaceString replace all matched <pattern> in string <src> with string <replace>.
ReplaceStringFunc replace all matched <pattern> in string <src> with custom replacement function <replaceFunc>.
ReplaceStringFuncMatch replace all matched <pattern> in string <src> with custom replacement function <replaceFunc>.
Split slices <src> into substrings separated by the expression and returns a slice of the substrings between those expression matches.
Validate checks whether given regular expression pattern <pattern> valid.