<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>suganoo</author_name>
  <author_url>https://blog.hatena.ne.jp/suganoo/</author_url>
  <blog_title>S氏はたまにblogを更新してます</blog_title>
  <blog_url>https://blog.suganoo.net/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>golang</anon>
  </categories>
  <description>「Goプログラミング実践入門 標準ライブラリでゼロからWebアプリを作る」を読んでいたら、jsonを扱う項目があったので練習がてら自分でも書いてみました。ほかにもやり方はあるようですが、まずはオーソドックスなやり方のencoding/json使ってやってみます。ざっくり言うとこんな感じ。 Read jsonの構造に沿って、Go側で構造体を作る。 json.Unmarshalで分解。 Write 作りたいjsonの内容を構造体で書く。 json.MarshalIndentで読み込む。 ファイルに書きだす。 ソースコード gistにあげてみました。 json_sample.jsonとjson_re…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.suganoo.net%2Fentry%2F2018%2F10%2F17%2F185654&quot; title=&quot;【Golang】Go言語でjsonを扱う - S氏はたまに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>https://images-fe.ssl-images-amazon.com/images/I/51dQZeafzvL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-10-17 18:56:54</published>
  <title>【Golang】Go言語でjsonを扱う</title>
  <type>rich</type>
  <url>https://blog.suganoo.net/entry/2018/10/17/185654</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
