{"categories":["Golang"],"version":"1.0","author_url":"https://blog.hatena.ne.jp/kagasu/","url":"https://kagasu.hatenablog.com/entry/2019/08/30/085526","width":"100%","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/k/kagasu/20190830/20190830085448.png","title":"Go\u3067\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3092\u64ae\u308b\u65b9\u6cd5","provider_name":"Hatena Blog","published":"2019-08-30 08:55:26","author_name":"kagasu","blog_title":"\u5099\u5fd8\u9332","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkagasu.hatenablog.com%2Fentry%2F2019%2F08%2F30%2F085526\" title=\"Go\u3067\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3092\u64ae\u308b\u65b9\u6cd5 - \u5099\u5fd8\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","blog_url":"https://kagasu.hatenablog.com/","provider_url":"https://hatena.blog","type":"rich","description":"\u2160. \u306f\u3058\u3081\u306b \u30bf\u30a4\u30c8\u30eb\u306e\u901a\u308a\u300cGo\u3067\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3092\u64ae\u308b\u65b9\u6cd5\u300d\u3067\u3059\u3002 \u2161. \u3084\u308a\u65b9 1. \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b go get github.com/kbinani/screenshot 2. \u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f package main import ( \"image/png\" \"os\" \"github.com/kbinani/screenshot\" ) func main() { bounds := screenshot.GetDisplayBounds(0) img, _ := screenshot.CaptureRect(bounds) file, _ := os.C\u2026"}