<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lufiabb</author_name>
  <author_url>https://blog.hatena.ne.jp/lufiabb/</author_url>
  <blog_title>Plan 9とGo言語のブログ</blog_title>
  <blog_url>https://blog.lufia.org/</blog_url>
  <categories>
    <anon>Go</anon>
    <anon>Exported from Qiita</anon>
  </categories>
  <description>この記事はQiitaで公開されていました 以下のコードは通常分かりづらいバグを持っています。 package main import ( &quot;fmt&quot; &quot;runtime&quot; &quot;sync&quot; ) type Counter int32 func (c *Counter) Inc() { *c++ } func main() { var c Counter var wg sync.WaitGroup for i := 0; i &lt; 1000; i++ { wg.Add(1) go func() { c.Inc() wg.Done() }() } wg.Wait() fmt.Println(&quot;Count =…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.lufia.org%2Fentry%2F2016%2F04%2F12%2F015200&quot; title=&quot;atomicパッケージが必要な理由と使い方 - Plan 9と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>2016-04-12 01:52:00</published>
  <title>atomicパッケージが必要な理由と使い方</title>
  <type>rich</type>
  <url>https://blog.lufia.org/entry/2016/04/12/015200</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
