{"provider_url":"https://hatena.blog","title":"N\u500b\u306echannel\u304cclose\u3055\u308c\u308b\u307e\u3067\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5\u306b\u3064\u3044\u3066","width":"100%","blog_title":"podhmo's diary","description":"N\u500b\u306echannel\u304cclose\u3055\u308c\u308b\u307e\u3067\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306e\u30e1\u30e2\u3002 1\u500b\u306echannel\u304cclose\u3055\u308c\u308b\u307e\u3067\u8aad\u307f\u8fbc\u3080 \u307e\u305a\u306f\u3058\u3081\u306bN=1\u306e\u5834\u5408\u306b\u3064\u3044\u3066\u3002\u3053\u308c\u306f\u5358\u306bfor\u30eb\u30fc\u30d7\u3067\u53d6\u308a\u51fa\u305b\u3070\u826f\u3044\u3002 package main import ( \"fmt\" \"sync\" \"time\" ) func main() { var wg sync.WaitGroup ch := make(chan int) wg.Add(1) go func() { defer close(ch) defer wg.Done() for _, x := range []int{1, 2, 3, 4, 5} { ch <\u2026","height":"190","url":"https://pod.hatenablog.com/entry/2019/03/19/002236","image_url":null,"version":"1.0","published":"2019-03-19 00:22:36","blog_url":"https://pod.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpod.hatenablog.com%2Fentry%2F2019%2F03%2F19%2F002236\" title=\"N\u500b\u306echannel\u304cclose\u3055\u308c\u308b\u307e\u3067\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5\u306b\u3064\u3044\u3066 - podhmo&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","categories":["golang","memo"],"author_name":"podhmo","author_url":"https://blog.hatena.ne.jp/podhmo/","type":"rich"}