From 0d753bb8ca03e2ff6017f7a82e3dd56187cd28d6 Mon Sep 17 00:00:00 2001 From: Mukhtar Haji Date: Wed, 25 May 2016 14:44:10 +0100 Subject: [PATCH] Log ListenAndServe's err response. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9516c51..960ef7c 100644 --- a/README.md +++ b/README.md @@ -219,7 +219,7 @@ package main import ( "net/http" - + "log" "github.com/gorilla/mux" ) @@ -233,7 +233,7 @@ func main() { r.HandleFunc("/", YourHandler) // Bind to a port and pass our router in - http.ListenAndServe(":8000", r) + log.Fatal(http.ListenAndServe(":8000", r)) } ```