Standard library / unicode

unicode.IsSymbol()

Tests Unicode symbol category S. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
func IsSymbol(r rune) bool

Parameters & Attributes

NameTypeDescription
rruneUnicode code point.

Return Value

bool

Tests Unicode symbol category S.

Working Example

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