blob: e0039fb139fe3cc6315af78f2c03597ebf477874 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// +build OMIT
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import "fmt"
func main() {
const nihongo = "日本語"
for index, runeValue := range nihongo {
fmt.Printf("%#U starts at byte position %d\n", runeValue, index)
}
}
|