<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>golang</author_name>
  <author_url>https://blog.hatena.ne.jp/golang/</author_url>
  <blog_title>golangの日記</blog_title>
  <blog_url>https://golang.hateblo.jp/</blog_url>
  <categories>
    <anon>Go言語</anon>
  </categories>
  <description>アサーション(assertion)の意味は断定、断言なので、型を断定するですかね。 interface型をアサートするには、i.(T) を使います。 複数から判別したい場合は、switch文で i.(type) を使います。 構造体type xxx structやインターフェースtype xxx interface についても同様です。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgolang.hateblo.jp%2Fentry%2Fgolang-interface-type-assertion&quot; title=&quot; Go言語(golang)のinterface{}を型アサーション/型キャスト - golangの日記&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/g/golang/20221023/20221023194611.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-10-18 18:30:00</published>
  <title> Go言語(golang)のinterface{}を型アサーション/型キャスト</title>
  <type>rich</type>
  <url>https://golang.hateblo.jp/entry/golang-interface-type-assertion</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
