Basic types / Characters and runes / Essential Go
package main
import "fmt"
func main() {
s := "日本語"
for i, runeChar := range s {
fmt.Printf("Rune at byte position %d is %#U\n", i, runeChar)
}
}INFO
package main
import "fmt"
func main() {
s := "日本語"
for i, runeChar := range s {
fmt.Printf("Rune at byte position %d is %#U\n", i, runeChar)
}
}