<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuheiomori0718</author_name>
  <author_url>https://blog.hatena.ne.jp/yuheiomori0718/</author_url>
  <blog_title>メモ置き場</blog_title>
  <blog_url>https://y0m0r.hateblo.jp/</blog_url>
  <categories>
    <anon>golang</anon>
  </categories>
  <description>以前codeevalのjsonのパースをするというchallengeをgoでやってみたとき、以下のようなエラーがでた。 json: cannot unmarshal null into Go value of type main.Item 簡略化してるけどコードは以下の通り。 package main import ( &quot;encoding/json&quot; &quot;log&quot; ) var d = []byte(`{ &quot;Items&quot;:[{&quot;id&quot;: 1},{&quot;id&quot;: 2}, null]}`) type Item struct { Id int } type jsonobj struct { Items []…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20131228%2F1388189124&quot; title=&quot;Go言語でjsonのパースエラー - メモ置き場&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>2013-12-28 09:05:24</published>
  <title>Go言語でjsonのパースエラー</title>
  <type>rich</type>
  <url>https://y0m0r.hateblo.jp/entry/20131228/1388189124</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
