<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shiimaxx</author_name>
  <author_url>https://blog.hatena.ne.jp/shiimaxx/</author_url>
  <blog_title>shiimaxx's blog</blog_title>
  <blog_url>https://shiimaxx.hatenablog.com/</blog_url>
  <categories>
    <anon>Golang</anon>
  </categories>
  <description>このエントリは Gopher道場 Advent Calendar 2018 5日目の記事です。 Goではエラーをerror型の値として扱います。errorはビルトインのインタフェース型として次のように定義されています。 type error interface { Error() string } https://golang.org/pkg/builtin/#error Goではインタフェース宣言時に定義したメソッドリストを実装することでインタフェースを実装します。 つまり、任意の型にError() stringをメソッドとして実装すれば、独自のエラー型のerrorとして扱うことが可能になり…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshiimaxx.hatenablog.com%2Fentry%2Fgo-error-handling&quot; title=&quot;Goにおけるエラーのコンテキストとエラーハンドリング - shiimaxx&amp;#39;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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-12-05 00:00:00</published>
  <title>Goにおけるエラーのコンテキストとエラーハンドリング</title>
  <type>rich</type>
  <url>https://shiimaxx.hatenablog.com/entry/go-error-handling</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
