Skip to content

Tag Archives: Golang-String

Go language provides a string package that holds different types of functions to manipulate UTF-8 encoded strings. To access the function of the string package… Read More
ContainsAny function is used to check whether any Unicode code points in chars are present in the string. It is an inbuilt function used to… Read More
strings.IndexFunc() Function in Golang is used to returns the index into s of the first Unicode code point satisfying f(c), or -1 if none do.… Read More
strings.ToValidUTF8() Function in Golang is used to returns a copy of the string s with each run of invalid UTF-8 byte sequences replaced by the… Read More
strings.IndexRune() Function in Golang is used to find the first index of the specified rune in the given string. It is defined under the string… Read More
Go language provides inbuilt support implementation of basic constants and run-time reflection to operate sort package. Golang is the ability for functions to run independently… Read More
strings.ToTitleSpecial() Function in Golang is used to returns a copy of the string s with all Unicode letters mapped to their Unicode title case, giving… Read More
strings.ToUpperSpecial() Function in Golang is used to returns a copy of the string s with all Unicode letters mapped to their upper case using the… Read More
strings.IndexAny() Function in Golang is used to returns the index of the first instance of any Unicode code point from chars in the original string.… Read More
strings.ToLowerSpecial() Function in Golang is used to returns a copy of the string s with all Unicode letters mapped to their lower case using the… Read More
strings.EqualFold() Function in Golang reports whether s and t, interpreted as UTF-8 strings, are equal under Unicode case-folding, which is a more general form of… Read More
strings.LastIndexByte() Function in Golang returns the index of the last instance of the given byte in the original string. If the given byte is not… Read More
strings.NewReplacer() Function in Golang returns a new Replacer from a list of previous, new string sets. Substitutions are performed within the order they show up… Read More
strings.LastIndexFunc() Function in Golang returns the index of string s of the last Unicode code point, which satisfies func(c), or it returns -1 if no… Read More
strings.Join() Function in Golang concatenates all the elements present in the slice of string into a single string. This function is available in the string… Read More