{"description":"\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u66f8\u3044\u3066\u3042\u308b\u3053\u3068\u3060\u3051\u3069\u3001\u6e21\u3057\u65b9\u3092\u30df\u30b9\u308b\u3068errors.As()\u306fpanic\u3057\u3066\u3057\u307e\u3046\u3002 As panics if target is not a non-nil pointer to either a type that implements error, or to any interface type. errors.As()\u306e\u4f7f\u3044\u65b9 \u305d\u306e\u524d\u306b errors.As()\u306e\u4f7f\u3044\u65b9\u306e\u304a\u3055\u3089\u3044\u3002 errors.As() \u306f\u30a8\u30e9\u30fc\u5024\u306e\u57fa\u5e95\u304c\u7b2c\u4e8c\u5f15\u6570\u3067\u6e21\u3055\u308c\u305f\u5f62\u72b6\u306e\u578b\u3060\u3063\u305f\u3068\u304d\u306btrue\u3092\u8fd4\u3059\u95a2\u65701\u3002 \u4f8b\u3048\u3070example\u306e\u4f8b\u306e\u30b3\u30fc\u30c9\u306f\u3053\u3093\u306a\u611f\u3058\u3002 package main import \u2026","categories":["golang","errors","memo"],"published":"2020-09-09 14:52:05","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpod.hatenablog.com%2Fentry%2F2020%2F09%2F09%2F145205\" title=\"go\u306eerrors.As()\u3067panic\u3057\u3061\u3083\u3046\u8a71 - podhmo&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"podhmo","height":"190","blog_url":"https://pod.hatenablog.com/","version":"1.0","author_url":"https://blog.hatena.ne.jp/podhmo/","title":"go\u306eerrors.As()\u3067panic\u3057\u3061\u3083\u3046\u8a71","image_url":null,"type":"rich","blog_title":"podhmo's diary","url":"https://pod.hatenablog.com/entry/2020/09/09/145205","width":"100%","provider_url":"https://hatena.blog"}