<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>otiai10</author_name>
  <author_url>https://blog.hatena.ne.jp/otiai10/</author_url>
  <blog_title>DRYな備忘録</blog_title>
  <blog_url>https://otiai10.hatenablog.com/</blog_url>
  <categories>
    <anon>go</anon>
  </categories>
  <description>問題 なんか文字列渡ってきてそれに対応するクラスをインスタンス化するみたいなのやったりする。 たとえば PHP &lt;?php class MyKlass { public $prop = &quot;foo&quot;; public function meth() { echo &quot;This is my method\n&quot;; echo &quot;This.prop = {$this-&gt;prop}&quot;; } } $class_name = &quot;MyKlass&quot;; $k = new $class_name(); $k-&gt;meth(); Python class MyKlass: def __init__(self): self.p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fotiai10.hatenablog.com%2Fentry%2F2014%2F05%2F20%2F232407&quot; title=&quot;Go言語で、クラス名からインスタンスを動的コンストラクトする、みたいなの【golang】【reflect】 - DRYな備忘録&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>http://cdn-ak.f.st-hatena.com/images/fotolife/o/otiai10/20140520/20140520232333.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-05-20 23:24:07</published>
  <title>Go言語で、クラス名からインスタンスを動的コンストラクトする、みたいなの【golang】【reflect】</title>
  <type>rich</type>
  <url>https://otiai10.hatenablog.com/entry/2014/05/20/232407</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
