{"author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834","image_url":null,"published":"2013-10-09 01:04:06","description":"range\u306bstring\u3092\u6e21\u3059\u3068byte position\u3068rune\u30921\u3064\u305a\u3064\u53d6\u5f97\u3067\u304d\u308b package main import ( \"fmt\" \"unicode/utf8\" ) func main() { s := \"\u3042\u3044\u3046\u3048\u304a\" // range\u306bstring\u3092\u6e21\u3059\u3068pos,rune\u3092\u9806\u306b\u8fd4\u3059 for pos, r := range s { fmt.Printf(\"character %c starts at byte position %d. unicode format is %U\\n\", r, pos, r) } // -> character \u3042 starts at byte po\u2026","type":"rich","version":"1.0","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20131009%2F1381334646\" title=\"Go\u8a00\u8a9e\u3067\u6587\u5b57\u5217\u30921\u6587\u5b57\u305a\u3064\u51e6\u7406\u3059\u308b - \u30e1\u30e2\u7f6e\u304d\u5834\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","categories":["golang","memo"],"url":"https://y0m0r.hateblo.jp/entry/20131009/1381334646","provider_url":"https://hatena.blog","blog_url":"https://y0m0r.hateblo.jp/","width":"100%","author_name":"yuheiomori0718","title":"Go\u8a00\u8a9e\u3067\u6587\u5b57\u5217\u30921\u6587\u5b57\u305a\u3064\u51e6\u7406\u3059\u308b"}