<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>otiai10</author_name>
  <author_url>https://blog.hatena.ne.jp/otiai10/</author_url>
  <blog_title>DRYな備忘録</blog_title>
  <blog_url>https://otiai10.hatenablog.com/</blog_url>
  <categories>
    <anon>go</anon>
  </categories>
  <description>package main import ( &quot;encoding/base64&quot; &quot;io/ioutil&quot; &quot;os&quot; ) func main() { f, err := os.Open(&quot;./hoge.png&quot;) if err != nil { panic(err) } defer f.Close() b, _ := ioutil.ReadAll(f) out, _ := os.Create(&quot;out&quot;) base64.NewEncoder(base64.StdEncoding, out).Write(b) } その逆 func main() { f, err := os.Open(&quot;./hoge…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fotiai10.hatenablog.com%2Fentry%2F2015%2F10%2F07%2F182002&quot; title=&quot;【Go言語】画像ファイルをbase64エンコード文字列にする、とその逆 - DRYな備忘録&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>2015-10-07 18:20:02</published>
  <title>【Go言語】画像ファイルをbase64エンコード文字列にする、とその逆</title>
  <type>rich</type>
  <url>https://otiai10.hatenablog.com/entry/2015/10/07/182002</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
