package main import "fmt" func main() { logLevel := "デバッグ" // For a string value, the range clause iterates over the // Unicode code points in the string starting at byte index 0. // On successive iterations, the index value will be the index // of the first byte of successive UTF-8-encoded code points // in the string, and the second value, of type rune, // will be the value of the corresponding code point. for index, runeVal := range logLevel { fmt.Println(index, string(runeVal)) } }