{"version":"1.0","blog_url":"https://dono.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdono.hatenablog.com%2Fentry%2F2018%2F01%2F04%2F111204\" title=\" [Golang] errgroup\u4f7f\u7528\u4f8b - xono\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Golang"],"url":"https://dono.hatenablog.com/entry/2018/01/04/111204","title":" [Golang] errgroup\u4f7f\u7528\u4f8b","provider_url":"https://hatena.blog","blog_title":"xono\u306e\u30d6\u30ed\u30b0","author_name":"xono","height":"190","type":"rich","description":"\u30eb\u30fc\u30d7\u3067goroutine\u3092\u3076\u3093\u56de\u3057\u3066\u308b\u6642\u306b\u4e00\u3064\u3067\u3082\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u305f\u3089\u4ed6\u306e\u3059\u3079\u3066\u306e\u30bf\u30b9\u30af\u3092\u7d42\u4e86\u3057\u3066\u30a8\u30e9\u30fc\u3092\u8fd4\u3059\u4f8b package main import ( \"context\" \"errors\" \"fmt\" \"log\" \"golang.org/x/sync/errgroup\" ) func main() { eg, ctx := errgroup.WithContext(context.Background()) ctx, cancel := context.WithCancel(ctx) defer cancel() for i := 0; i < 100; i++ { i := i eg.G\u2026","published":"2018-01-04 11:12:04","width":"100%","image_url":null,"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/xono/"}