<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>podhmo</author_name>
  <author_url>https://blog.hatena.ne.jp/podhmo/</author_url>
  <blog_title>podhmo's diary</blog_title>
  <blog_url>https://pod.hatenablog.com/</blog_url>
  <categories>
    <anon>golang</anon>
    <anon>memo</anon>
  </categories>
  <description>はじめに structの生成にfactory的な関数を用意しておくと埋め込みに変えたときに特に嬉しいという話。これはもしかしたらニッチな話かもしれない。あるいはgoの本のどこにでも書いてある一般的な話かもしれない。今日goのコードを書いていてなるほどなーと思ったことだったので。備忘録として書いてみる。 はじめは１つのstructだった はじめは１つのstructだった。例えば以下のようなstruct。何かしらのjobを模したものだと思って欲しい。 // Job : type Job struct { Name string Status Status RetryAt *time.Time Ca…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpod.hatenablog.com%2Fentry%2F2018%2F03%2F27%2F231436&quot; title=&quot;structの生成にfactory的な関数を用意しておくと埋め込みに変えたときに特に嬉しいという話 - podhmo&amp;#39;s diary&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-03-27 23:26:11</published>
  <title>structの生成にfactory的な関数を用意しておくと埋め込みに変えたときに特に嬉しいという話</title>
  <type>rich</type>
  <url>https://pod.hatenablog.com/entry/2018/03/27/231436</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
