Standard library / unicode

unicode.In()

Reports whether r appears in any supplied range table. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
func In(r rune, ranges ...*RangeTable) bool

Parameters & Attributes

NameTypeDescription
rruneUnicode code point.
ranges...*RangeTableUnicode range tables to search.

Return Value

bool

Reports whether r appears in any supplied range table.

Working Example

Example Snippetgo
package main
import (  "fmt"  "unicode")
func main() {  fmt.Println(unicode.In('A', unicode.Latin, unicode.Arabic))}
Go Reference