{"title":"go \u3067\u7c21\u6613HTTP\u30b5\u30fc\u30d0\u30fc\u7acb\u3066\u308b","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","type":"rich","version":"1.0","url":"https://ema-hiro.hatenablog.com/entry/20170428/1493306854","image_url":null,"description":"http.HandlerFunc\u3092\u4f7f\u3046\u5834\u5408 package main import ( \"fmt\" \"net/http\" ) func main () { http.HandleFunc(\"/\", func(w http.ResponseWriter, r *http.Request){ w.Writer([]bytes(`\u8868\u793a\u5185\u5bb9`)) } } if err := http.ListenAndServe(\":8080\", nil); err ! = nil{ fmt.Printf(\"\u30a8\u30e9\u30fc\u8868\u793a\") } http.Handle\u3092\u4f7f\u3046 package main import ( \"fmt\" \"n\u2026","blog_title":"emahiro/b.log","categories":["Go"],"author_url":"https://blog.hatena.ne.jp/ema_hiro/","published":"2017-04-28 00:27:34","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fema-hiro.hatenablog.com%2Fentry%2F20170428%2F1493306854\" title=\"go \u3067\u7c21\u6613HTTP\u30b5\u30fc\u30d0\u30fc\u7acb\u3066\u308b - emahiro/b.log\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://ema-hiro.hatenablog.com/","width":"100%","author_name":"ema_hiro","height":"190"}