{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzetamatta.hatenablog.com%2Fentry%2F2025%2F12%2F21%2F112224\" title=\"\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u884c\u51e6\u7406\u306e\u30a4\u30c7\u30a3\u30aa\u30e0 - \u6a19\u6e96\u611a\u75f4\u51fa\u529b\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://zetamatta.hatenablog.com/entry/2025/12/21/112224","provider_url":"https://hatena.blog","author_name":"zetamatta","height":"190","title":"\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u884c\u51e6\u7406\u306e\u30a4\u30c7\u30a3\u30aa\u30e0","categories":["Go"],"author_url":"https://blog.hatena.ne.jp/zetamatta/","blog_title":"\u6a19\u6e96\u611a\u75f4\u51fa\u529b","image_url":null,"type":"rich","blog_url":"https://zetamatta.hatenablog.com/","version":"1.0","width":"100%","description":"\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3092\u6271\u3046\u6642\uff1a \u30c7\u30fc\u30bf\u8aad\u307f\u53d6\u308a\u6642\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u6642\u306f\u305f\u3060\u3061\u306b\u7d42\u308f\u308b \u305f\u3060\u3057\u3001\u305d\u306e\u30a8\u30e9\u30fc\u304c EOF \u306e\u5834\u5408\u306f\u3001\u6709\u52b9\u30c7\u30fc\u30bf\u304c\u3042\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001\u305d\u308c\u3092\u51e6\u7406\u3057\u3066\u304b\u3089\u7d42\u308f\u308b \u3068\u3044\u3046\u5b9a\u756a\u51e6\u7406\u304c\u3042\u308b\u3002 \u3053\u308c\u3092\u7d20\u76f4\u306b\u5b9f\u88c5\u3059\u308b\u3068\u6b21\u306e\u3088\u3046\u306b\u306a\u308b\u3002 ( \u8aad\u307f\u53d6\u308a\u51e6\u7406\u306f fetch, \u52a0\u5de5\u51e6\u7406\u306f work \u3068\u3044\u3046\u95a2\u6570\u3067\u8868\u73fe ) for { data, err := fetch() if err != nil && !errors.Is(err, io.EOF) { return err } work(data) if errors.Is(err, io.EOF) { break } } \u3053\u308c\u3001e\u2026","published":"2025-12-21 11:22:24","provider_name":"Hatena Blog"}