Home » Go Rune

Go Rune Type

The type rune is an alias for type int32. The rune literals are an integer value.

If you store string value in rune literal, it will provide the ASCII value of the character. For example, the rune literal of ‘A’ will be 65.

Go Rune Type Example

Output:

65 int32 

Next TopicGo Map

You may also like