Standard library / unicode
unicode.Range32
An inclusive code-point range with uint32 endpoints at or above U+10000 and positive stride. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
type Range32 struct { Lo, Hi, Stride uint32 }Working Example
Example Snippetgo
package main
import ( "fmt" "unicode")
func main() { t := &unicode.RangeTable{R32: []unicode.Range32{{Lo: 0x1f600, Hi: 0x1f602, Stride: 1}}} fmt.Println(unicode.Is(t, '😀'))}