Rune is a superset of ASCII or it is an alias of int32. It holds all the characters available in the world’s writing system, including accents and other diacritical marks, control codes like tab and carriage return, and assigns each one a standard number. This standard number is known as a Unicode code point or rune in the Go language.
You are allowed to check the given rune is a space character or not defined by the Unicode’s White Space property, with the help of IsSymbol() function. This function returns true if the given rune is a space character, or return false if the given rune is not a space character. This function is defined under Unicode package, so for accessing this method you need to import the Unicode package in your program.
func IsSpace(r rune) bool
The return type of this function is boolean. Let us discuss this concept with the help of given examples:
false false true true false
It is not a space character It is a space character It is a space character It is not a space character It is a space character
- Check If the Rune is a Unicode Punctuation Character or not in Golang
- Check If the Rune is a Symbolic Character or not in Golang
- Check If the Rune is a Letter or not in Golang
- Check If the Rune is a Decimal Digit or not in Golang
- Check If the Rune is an Uppercase Letter or not in Golang
- Check If the Rune is a Lowercase Letter or not in Golang
- How to check the specified rune in Golang String?
- Golang | How to find the index of rune in the string?
- How to Map a Rune to Lowercase in Golang?
- How to Map a Rune to Title Case in Golang?
- How to Map a Rune to Uppercase in Golang?
- How to Map a Rune to the Specified Case in Golang?
- Rune in Golang
- How to check pointer or interface is nil or not in Golang?
- Bitwise NOT operator in Golang
- Checking the Given File Exists or Not in Golang
- Checking if structure is empty or not in Golang
- How to check equality of slices of bytes in Golang?
- Check if the given slice is sorted in Golang
- Check if the given characters is present in Golang String
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.