Predeclared type

Go rune type

Alias of int32, conventionally used for Unicode code points. Not all int32 values are valid Unicode scalar values; a rune is not necessarily a visible character. Example output: 'U+0633'.

Formal Syntax & Structure

go syntaxgo
rune

Working Example

Example Snippetgo
package main
import (  "fmt")
func main() {  var r rune = 'س'  fmt.Printf("%U\n", r)}
Go Reference