Skip to content

Commit

Permalink
log.fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Winkler authored and Scott Winkler committed Aug 2, 2019
1 parent eafea4c commit 0079283
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chapter7/complete/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ func IndexServer(w http.ResponseWriter, r *http.Request) {
func main() {
handler := http.HandlerFunc(IndexServer)
log.Println("Listening on :8080...")
http.ListenAndServe(":8080", handler)
log.Fatal(http.ListenAndServe(":8080", handler))
}
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/scottwinkler/manning-code

go 1.12

0 comments on commit 0079283

Please sign in to comment.