func Compare | This function is used to return an integer comparing two strings lexicographically. |
func Contains | This function is used to check whether substr is within s or not. |
func ContainsAny | This function is used to check whether any Unicode code points in chars are within s or not. |
func ContainsRune | This function is used to check whether the Unicode code point r is within s or not. |
func Count | This function is used to count the number of non-overlapping instances of substr in given string s. |
func EqualFold | This function is used to check whether s and t, interpreted as UTF-8 strings, are equal under Unicode case-folding, which is a more general form of case-insensitivity or not. |
func Fields | This function is used to splits the given string s around each instance of one or more consecutive white space characters, as defined by unicode.IsSpace, returning a slice of substrings of s or an empty slice if s contains only white space. |
func FieldsFunc | This function is used to splits the string s at each run of Unicode code points c satisfying f(c) and returns an array of slices of s. |
func HasPrefix | This function is used to check whether the string s begins with prefix or not. |
HasSuffix | This function is used to check whether the string s ends with suffix or not. |
func Index | This function is used to returns the index of the first instance of substr in s or -1 if substr is not present in s. |
func IndexAny | This function is used to 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. |
func IndexByte | This function is used to returns the index of the first instance of c in s, or -1 if c is not present in s. |
func IndexFunc | This function is used to returns the index into s of the first Unicode code point satisfying f(c) or -1 if none do. |
func IndexRune | This function is used to returns the index of the first instance of the Unicode code point r, or -1 if rune is not present in s. |
func Join | This function is used to concatenate the elements of its first argument to create a single string. |
func LastIndex | This function is used to returns the index of the last instance of substr in s, or -1 if substr is not present in s. |
func LastIndexAny | This function is used to 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. |
func LastIndexByte | This function is used to returns the index of the last instance of c in s, or -1 if c is not present in s. |
func LastIndexFunc | This function is used to returns the index into s of the last Unicode code point satisfying f(c), or -1 if none do. |
func Map | This function is used to returns a copy of the string s with all its characters modified according to the mapping function. |
func Repeat | This function is used to returns a new string consisting of count copies of the string s. |
func Replace | This function is used to returns a copy of the string s with the first n non-overlapping instances of old replaced by new. |
func ReplaceAll | This function is used to returns a copy of the string s with all non-overlapping instances of old replaced by new. |
func Split | This function is used to slices s into all substrings separated by sep and returns a slice of the substrings between those separators. |
func SplitAfter | This function is used to slices s into all substrings after each instance of sep and returns a slice of those substrings. |
func SplitAfterN | This function is used to slices s into substrings after each instance of sep and returns a slice of those substrings. |
func SplitN | This function is used to slices s into substrings separated by sep and returns a slice of the substrings between those separators. |
func Title | This function is used to returns a copy of the string s with all Unicode letters that begin words mapped to their Unicode title case. |
func ToLower | This method is used to returns s with all Unicode letters mapped to their lower case. |
func ToLowerSpecial | This function is used to returns a copy of the string s with all Unicode letters mapped to their lower case using the case mapping specified by c. |
func ToTitle | This function is used to returns a copy of the string s with all Unicode letters mapped to their Unicode title case. |
func ToTitleSpecial | This function is used to returns a copy of the string s with all Unicode letters mapped to their Unicode title case, giving priority to the special casing rules. |
func ToUpper | This function is used to returns s with all Unicode letters mapped to their upper case. |
func ToUpperSpecial | This function is used to returns a copy of the string s with all Unicode letters mapped to their upper case using the case mapping specified by c. |
func ToValidUTF8 | This function is used to returns a copy of the string s with each run of invalid UTF-8 byte sequences replaced by the replacement string, which may be empty. |
func Trim | This function is used to returns a slice of the given string with all leading and trailing Unicode code points contained in cutset removed. |
func TrimFunc | This function is used to returns a slice of the given string with all leading and trailing Unicode code points c satisfying f(c) removed. |
func TrimLeft | This method is used to returns a slice of the given string with all leading Unicode code points contained in cutset removed. |
func TrimLeftFunc | This function is used to returns a slice of the given string with all leading Unicode code points c satisfying f(c) removed. |
func TrimPrefix | This function is used to returns s without the provided leading prefix string. If s doesn't start with prefix, s is returned unchanged. |
func TrimRight | This function is used to returns a slice of the given string, with all trailing Unicode code points contained in cutset removed. |
func TrimRightFunc | This function is used to returns a slice of the given string with all trailing Unicode code points c satisfying f(c) removed. |
func TrimSpace | This function is used to returns a slice of given the string, with all leading and trailing white space removed, as defined by Unicode. |
func TrimSuffix | This function is used to returns s without the provided trailing suffix string. |