In Go, a rune
represents a Unicode code point, which is an integer value identifying a character in the Unicode standard. Unicode is a character encoding standard that assigns a unique number (code point) to each character in most of the world's writing systems
In Go, the rune
type is an alias for the int32
type, and it is used to represent Unicode code points. You can use runes to work with characters and strings that may contain characters from different languages and scripts.
Rune is an alias for int32 and is equivalent to int32
in all ways. It is used, by convention, to distinguish character values from integer values.