Standard library / unicode

unicode.IsGraphic()

Tests Unicode letters, marks, numbers, punctuation, symbols and space separators. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
func IsGraphic(r rune) bool

Parameters & Attributes

NameTypeDescription
rruneUnicode code point.

Return Value

bool

Tests Unicode letters, marks, numbers, punctuation, symbols and space separators.

Working Example

Example Snippetgo
package main
import (  "fmt"  "unicode")
func main() {  fmt.Println(unicode.IsGraphic('é'))}
Go Reference