<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>woshidan</author_name>
  <author_url>https://blog.hatena.ne.jp/woshidan/</author_url>
  <blog_title>woshidan's loose leaf</blog_title>
  <blog_url>https://woshidan.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>週5以上活動していればよい感じで。 以下のようなコードを動かしながら、関数値gの中でその値が定義された関数f内の変数Aを利用すると、関数値gは変数Aの参照を持っているのだなぁ、という確認をしていた var once sync.Once onceFunc := func() { once.Do(func() { fmt.Println(&quot;A&quot;) }) } func main() { var once sync.Once firstFunc := func() { once.Do(func() { fmt.Println(&quot;A&quot;) }) } secondFunc := func() { once.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwoshidan.hatenadiary.jp%2Fentry%2F2018%2F04%2F15%2F005017&quot; title=&quot;今週のGo - woshidan&amp;#39;s loose leaf&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-04-15 00:50:17</published>
  <title>今週のGo</title>
  <type>rich</type>
  <url>https://woshidan.hatenadiary.jp/entry/2018/04/15/005017</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
