{"image_url":null,"blog_title":"emahiro/b.log","title":"\u72ec\u81ea\u30a8\u30e9\u30fc\u3092 errors.Is \u3067\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3059\u308b\u306b\u306f Unwrap \u3092\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b","published":"2022-09-28 14:49:57","provider_url":"https://hatena.blog","width":"100%","blog_url":"https://ema-hiro.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fema-hiro.hatenablog.com%2Fentry%2F2022%2F09%2F28%2F144957\" title=\"\u72ec\u81ea\u30a8\u30e9\u30fc\u3092 errors.Is \u3067\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3059\u308b\u306b\u306f Unwrap \u3092\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b - emahiro/b.log\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Go"],"url":"https://ema-hiro.hatenablog.com/entry/2022/09/28/144957","description":"Overview \u4f55\u5ea6\u3082\u5fd8\u308c\u308b\u306e\u3067\u5099\u5fd8\u9332\u3002 \u304d\u3063\u3068\u307e\u305f\u5fd8\u308c\u3066\u4f3c\u305f\u3088\u3046\u306a\u30a8\u30f3\u30c8\u30ea\u3092\u66f8\u304f\u6c17\u3082\u3059\u308b\u3002 Sample \u72ec\u81ea\u30a8\u30e9\u30fc\u3092 errors.Is \u3067\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3057\u305f\u3044\u3068\u304d\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b Unwrap \u3092\u5b9f\u88c5\u3059\u308b\u3002 type sampleError struct { err error msg string } func (e *sampleError) Error() string { return e.msg } func (e *sampleError) Unwrap() error { return e.err } func main() { var err error = &sample\u2026","author_name":"ema_hiro","author_url":"https://blog.hatena.ne.jp/ema_hiro/","type":"rich","provider_name":"Hatena Blog","height":"190","version":"1.0"}