{"author_url":"https://blog.hatena.ne.jp/gomana2/","author_name":"gomana2","url":"https://gomana2.hatenablog.jp/entry/2019/06/02/112052","height":"190","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgomana2.hatenablog.jp%2Fentry%2F2019%2F06%2F02%2F112052\" title=\"Go\u3067\u7c21\u5358\u306aWeb\u30b5\u30fc\u30d0\u3092\u4f5c\u308b(net/http) - \u3054\u307e\u306a\u3064 Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["\u6280\u8853\u7cfb"],"width":"100%","blog_url":"https://gomana2.hatenablog.jp/","description":"Go\u3067net/http\u3092\u7528\u3044\u3066\u7c21\u5358\u306aWeb\u30b5\u30fc\u30d0\u3092\u4f5c\u308a\u307e\u3059\u3002 package main import ( \"html/template\" \"io/ioutil\" \"log\" \"net/http\" \"regexp\" ) type Page struct { Title string Body []byte } func (p *Page) save() error { filename := p.Title + \".txt\" return ioutil.WriteFile(filename, p.Body, 0600) } func loadPage(title string) (*Page, \u2026","provider_url":"https://hatena.blog","image_url":null,"provider_name":"Hatena Blog","blog_title":"\u3054\u307e\u306a\u3064 Blog","published":"2019-06-02 11:20:52","title":"Go\u3067\u7c21\u5358\u306aWeb\u30b5\u30fc\u30d0\u3092\u4f5c\u308b(net/http)","version":"1.0"}