<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>okazuki</author_name>
  <author_url>https://blog.hatena.ne.jp/okazuki/</author_url>
  <blog_title>かずきのBlog@hatena</blog_title>
  <blog_url>https://okazuki.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>blog.okazuki.jp 勉強過程で普通に panic になりますとかって言ってたけど panic とはなんぞや？ということで動きを見てみる。 端的に言うと panic は C# でいうところの例外に近いもの。Java でいうところの RuntimeException や、もっというと Error 系の例外クラスに近いもの。 つまり端的にいうと起きたら死亡という類のもの。 何個か発生させる方法としてぱっと思いつくのは範囲外アクセスや package main import &quot;fmt&quot; func main() { s := []int{1, 2, 3} fmt.Println(s[10:]…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fokazuki.hatenablog.com%2Fentry%2F2018%2F10%2F25%2F001553&quot; title=&quot;Go 言語勉強ログ その4 panic/recover - かずきのBlog@hatena&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-10-25 00:15:53</published>
  <title>Go 言語勉強ログ その4 panic/recover</title>
  <type>rich</type>
  <url>https://okazuki.hatenablog.com/entry/2018/10/25/001553</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
