Skip to content

Tag Archives: Golang-String

The strings.Title method is being deprecated from Golang, so we need an alternative to make our strings Title cased or Capital Case. The text/cases and… Read More
We might want to generate random strings or even sets of characters to perform some operations or add certain string-related functionality into an application. We… Read More
In this article, we will see how to validate an alphanumeric string in Golang. We will simply input a string from the user and check… Read More
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

Start Your Coding Journey Now!