<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gsf_zero1</author_name>
  <author_url>https://blog.hatena.ne.jp/gsf_zero1/</author_url>
  <blog_title>いろいろ備忘録日記</blog_title>
  <blog_url>https://devlights.hatenablog.com/</blog_url>
  <categories>
    <anon>golang</anon>
  </categories>
  <description>概要 サンプル 参考 概要 よく忘れてしまうので、ここにメモメモ。 Go には、他の言語にあるような継承の概念がありませんが、型の組み込みはサポートされています。 (このあたりはよく議論の的みたいですが、個人的には継承は普段あまり使わないので私は不便ではないです） 組み込みはインターフェースでも構造体でも可能です。 やり方は、型の定義の際に 組み込む対象 の型名をフィールド名をつけずにそのまま記載することです。 インターフェースの場合は type ( MyReadWriter interface { io.Reader io.Writer } ) って風に、そのまんま書くだけです。 構造体の場…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdevlights.hatenablog.com%2Fentry%2F2020%2F03%2F18%2F122905&quot; title=&quot;Goメモ-68 (型の組み込みについてのメモ, Embedded, Effective-Go) - いろいろ備忘録日記&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>2020-03-18 12:29:05</published>
  <title>Goメモ-68 (型の組み込みについてのメモ, Embedded, Effective-Go)</title>
  <type>rich</type>
  <url>https://devlights.hatenablog.com/entry/2020/03/18/122905</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
