Skip to content

Instantly share code, notes, and snippets.



Created Dec 5, 2013
What would you like to do?
print runes over for loop range of Unicode code points
package main
import (
func main() {
// x := string([]rune{0x767d, 0x9d6c, 0x7fd4}) // works
// x := string(rune(0x66)) // works
for x := 0x0e82; x < 0x0ec6; x++ { // change these bounds to see other glyphs
y := string(rune(x))
fmt.Println("decimal code point and its rune:", x, y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment