Standard library / unicode

unicode.MaxRune

Largest Unicode code point; surrogate code points are excluded from Unicode scalar values. Expected stdout: 'U+10FFFF\n'.

Formal Syntax & Structure

go syntaxgo
const MaxRune = '\U0010FFFF'

Working Example

Example Snippetgo
package main
import (  "fmt"  "unicode")
func main() {  fmt.Printf("%U\n", unicode.MaxRune)}
Go Reference