package
0.0.0-20130121074735-1d03baafba06
Repository: https://github.com/icattlecoder/go.git
Documentation: pkg.go.dev
# Functions
Contains returns true if substr is within s.
ContainsAny returns true if any Unicode code points in chars are within s.
ContainsRune returns true if the Unicode code point r is within s.
Count counts the number of non-overlapping instances of sep in s.
EqualFold reports whether s and t, interpreted as UTF-8 strings, are equal under Unicode case-folding.
Fields splits the string s around each instance of one or more consecutive white space characters, returning an array of substrings of s or an empty list if s contains only white space.
FieldsFunc splits the string s at each run of Unicode code points c satisfying f(c) and returns an array of slices of s.
HasPrefix tests whether the string s begins with prefix.
HasSuffix tests whether the string s ends with suffix.
Index returns the index of the first instance of sep in s, or -1 if sep is not present in s.
IndexAny returns the index of the first instance of any Unicode code point from chars in s, or -1 if no Unicode code point from chars is present in s.
IndexFunc returns the index into s of the first Unicode code point satisfying f(c), or -1 if none do.
IndexRune returns the index of the first instance of the Unicode code point r, or -1 if rune is not present in s.
Join concatenates the elements of a to create a single string.
LastIndex returns the index of the last instance of sep in s, or -1 if sep is not present in s.
LastIndexAny returns the index of the last instance of any Unicode code point from chars in s, or -1 if no Unicode code point from chars is present in s.
LastIndexFunc returns the index into s of the last Unicode code point satisfying f(c), or -1 if none do.
Map returns a copy of the string s with all its characters modified according to the mapping function.
NewReader returns a new Reader reading from s.
NewReplacer returns a new Replacer from a list of old, new string pairs.
Repeat returns a new string consisting of count copies of the string s.
Replace returns a copy of the string s with the first n non-overlapping instances of old replaced by new.
Split slices s into all substrings separated by sep and returns a slice of the substrings between those separators.
SplitAfter slices s into all substrings after each instance of sep and returns a slice of those substrings.
SplitAfterN slices s into substrings after each instance of sep and returns a slice of those substrings.
SplitN slices s into substrings separated by sep and returns a slice of the substrings between those separators.
Title returns a copy of the string s with all Unicode letters that begin words mapped to their title case.
ToLower returns a copy of the string s with all Unicode letters mapped to their lower case.
ToLowerSpecial returns a copy of the string s with all Unicode letters mapped to their lower case, giving priority to the special casing rules.
ToTitle returns a copy of the string s with all Unicode letters mapped to their title case.
ToTitleSpecial returns a copy of the string s with all Unicode letters mapped to their title case, giving priority to the special casing rules.
ToUpper returns a copy of the string s with all Unicode letters mapped to their upper case.
ToUpperSpecial returns a copy of the string s with all Unicode letters mapped to their upper case, giving priority to the special casing rules.
Trim returns a slice of the string s with all leading and trailing Unicode code points contained in cutset removed.
TrimFunc returns a slice of the string s with all leading and trailing Unicode code points c satisfying f(c) removed.
TrimLeft returns a slice of the string s with all leading Unicode code points contained in cutset removed.
TrimLeftFunc returns a slice of the string s with all leading Unicode code points c satisfying f(c) removed.
TrimRight returns a slice of the string s, with all trailing Unicode code points contained in cutset removed.
TrimRightFunc returns a slice of the string s with all trailing Unicode code points c satisfying f(c) removed.
TrimSpace returns a slice of the string s, with all leading and trailing white space removed, as defined by Unicode.