[docs] Log ListenAndServe's err response in example
This commit is contained in:
@@ -219,7 +219,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"log"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -233,7 +233,7 @@ func main() {
|
|||||||
r.HandleFunc("/", YourHandler)
|
r.HandleFunc("/", YourHandler)
|
||||||
|
|
||||||
// Bind to a port and pass our router in
|
// Bind to a port and pass our router in
|
||||||
http.ListenAndServe(":8000", r)
|
log.Fatal(http.ListenAndServe(":8000", r))
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user