Browse Source

[docs] Log ListenAndServe's err response in example

pull/169/head
Matt Silverlock 10 years ago
parent
commit
bd09be08ed
  1. 4
      README.md

4
README.md

@ -219,7 +219,7 @@ package main @@ -219,7 +219,7 @@ package main
import (
"net/http"
"log"
"github.com/gorilla/mux"
)
@ -233,7 +233,7 @@ func main() { @@ -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))
}
```

Loading…
Cancel
Save