{"width":"100%","version":"1.0","blog_url":"https://oinume.hatenablog.com/","url":"https://oinume.hatenablog.com/entry/understanding-http-handler-in-go","description":"\u306f\u3058\u3081\u306b Go\u3067HTTP Server\u3092\u4f5c\u308d\u3046\u3068\u3059\u308b\u3068\u3001\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u5834\u5408\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u3088\u304f\u66f8\u304f\u3068\u601d\u3046\u3002 package main import ( \"fmt\" \"log\" \"net/http\" ) func main() { mux := http.NewServeMux() mux.Handle(\"/hello\", http.HandlerFunc(hello)) log.Fatal(http.ListenAndServe(\":8080\", mux)) } func hello(w http.ResponseWriter, _ *http.Request) { w.WriteH\u2026","provider_name":"Hatena Blog","published":"2018-07-09 09:00:00","title":"Go\u306ehttp.Handler\u3084http.HandlerFunc\u3092\u3061\u3083\u3093\u3068\u7406\u89e3\u3059\u308b","author_url":"https://blog.hatena.ne.jp/oinume/","blog_title":"oinume journal","height":"190","categories":["Go"],"provider_url":"https://hatena.blog","type":"rich","author_name":"oinume","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Foinume.hatenablog.com%2Fentry%2Funderstanding-http-handler-in-go\" title=\"Go\u306ehttp.Handler\u3084http.HandlerFunc\u3092\u3061\u3083\u3093\u3068\u7406\u89e3\u3059\u308b - oinume journal\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":"https://blog.golang.org/go-brand/logos.jpg"}