Standard library / unicode/utf8

utf8.UTFMax

Maximum byte width of a UTF-8 encoding of a rune (four). Expected stdout: '4\n'.

Formal Syntax & Structure

go syntaxgo
const UTFMax = 4

Working Example

Example Snippetgo
package main
import (  "fmt"  "unicode/utf8")
func main() {  fmt.Println(utf8.UTFMax)}
Go Reference