Skip to content
Related Articles

Related Articles

Improve Article
Check If the Rune is a Symbolic Character or not in Golang
  • Last Updated : 27 Sep, 2019

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 symbolic character or not with the help of IsSymbol() function. This function returns true if the given rune is a symbolic character, or return false if the given rune is not a symbolic character. This function is defined under Unicode package, so for accessing this method you need to import the Unicode package in your program.

Syntax:

func IsSymbol(r rune) bool

The return type of this function is boolean. Let us discuss this concept with the help of given examples:

Example 1:

IsSymbol() Method



Output:
IsSymbol() Method

Example 2:

IsSymbol() Method

Output:

IsSymbol() Method

My Personal Notes arrow_drop_up
Recommended Articles
Page :