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) boolParameters & Attributes
| Name | Type | Description |
|---|---|---|
| r | rune | Unicode code point. |
| ranges | ...*RangeTable | Unicode 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))}