<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>podhmo</author_name>
  <author_url>https://blog.hatena.ne.jp/podhmo/</author_url>
  <blog_title>podhmo's diary</blog_title>
  <blog_url>https://pod.hatenablog.com/</blog_url>
  <categories>
    <anon>golang</anon>
    <anon>error</anon>
    <anon>maperr</anon>
  </categories>
  <description>github.com errorをmapで保持するライブラリを作った。いわゆるmultierrorのような複数のエラーをsliceとしてまとめるライブラリは存在するのだけれど、意外とmapで保持するライブラリがなかったので。代わりのライブラリがあるならそちらを使いたい。 なぜ作ったか？ これは個人的な体験によるものなのかもしれないが、REST APIのエラーとして返すときにはmapとして返されたほうが嬉しいような気がする。加えてconfig用のvalidationにもこれをそのまま適用すれば手軽につかえて便利なのではと思った。 (要は、func (io.Reader, interface {}…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpod.hatenablog.com%2Fentry%2F2020%2F05%2F04%2F150859&quot; title=&quot;errorをmapで保持する小さなerrorライブラリを作った - podhmo&amp;#39;s diary&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://cdn-ak.f.st-hatena.com/images/fotolife/p/podhmo/20200504/20200504150852.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-04 15:08:59</published>
  <title>errorをmapで保持する小さなerrorライブラリを作った</title>
  <type>rich</type>
  <url>https://pod.hatenablog.com/entry/2020/05/04/150859</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
