<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kitak</author_name>
  <author_url>https://blog.hatena.ne.jp/kitak/</author_url>
  <blog_title>kitak blog</blog_title>
  <blog_url>https://kitak.hatenablog.jp/</blog_url>
  <categories>
    <anon>golang</anon>
    <anon>image</anon>
  </categories>
  <description>こんにちは。今日は体調がいまいちなので、トムヤムクンを食べにいきます、きたけーです。 golang で URLの画像データを取得して、ローカルのファイルに保存してみました。 こんなかんじのコードで猫ちゃん画像が保存できます。 package main import ( &quot;io&quot; &quot;net/http&quot; &quot;os&quot; ) func main() { var url string = &quot;http://placekitten.com/g/640/340&quot; response, err := http.Get(url) if err != nil { panic(err) } defer response.B…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkitak.hatenablog.jp%2Fentry%2F2014%2F10%2F19%2F175133&quot; title=&quot;golang で URLの画像データを取得して、ローカルのファイルに保存する術 - kitak blog&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>2014-10-19 17:51:33</published>
  <title>golang で URLの画像データを取得して、ローカルのファイルに保存する術</title>
  <type>rich</type>
  <url>https://kitak.hatenablog.jp/entry/2014/10/19/175133</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
