<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>quoll00</author_name>
  <author_url>https://blog.hatena.ne.jp/quoll00/</author_url>
  <blog_title>Carpe Diem</blog_title>
  <blog_url>https://christina04.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>概要 christina04.hatenablog.com で書いていなかったことの追加です。 環境 golang 1.11.4 recoverしたあとのエラーハンドリングをどうするか panicをrecoverしたものはいいものの、 func f() { defer func() { if r := recover(); r != nil { fmt.Println(&quot;Recovered in f&quot;, r) } }() panic(&quot;panic&quot;) } The Go Playground このように単純にrecoverしてハイ終わり、としているとpanicを起こしたのに処理が正常系で進んでし…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchristina04.hatenablog.com%2Fentry%2Fgoroutine-panic-2&quot; title=&quot;goroutineでのpanicのハンドリング その２ - Carpe Diem&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>2019-01-18 19:00:00</published>
  <title>goroutineでのpanicのハンドリング その２</title>
  <type>rich</type>
  <url>https://christina04.hatenablog.com/entry/goroutine-panic-2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
