<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ema_hiro</author_name>
  <author_url>https://blog.hatena.ne.jp/ema_hiro/</author_url>
  <blog_title>emahiro/b.log</blog_title>
  <blog_url>https://ema-hiro.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>Overview ちょっと凝ったユースケースですが、byte 文字列を Int に変換したいユースケースがあったときに使えるテクニックについてまとめます。 以下のようなユースケースを考えます。 func main() { b := []byte(&quot;123456&quot;) for idx := range b { fmt.Println(b[idx]) } } // OUTPUT: // // 49 &lt;- 1 // 50 &lt;- 2 // 51 &lt;- 3 // 52 &lt;- 4 // 53 &lt;- 5 // 54 &lt;- 6 ここで byte 配列に格納された書く byte 文字列を自然数の配列に変換したいと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fema-hiro.hatenablog.com%2Fentry%2F2021%2F07%2F22%2F020939&quot; title=&quot;byte 文字列を Int に変換する - emahiro/b.log&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-07-22 02:09:39</published>
  <title>byte 文字列を Int に変換する</title>
  <type>rich</type>
  <url>https://ema-hiro.hatenablog.com/entry/2021/07/22/020939</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
