From e636b1233057513e1cba0c77be2a717aa727385d Mon Sep 17 00:00:00 2001 From: Levi Olson Date: Wed, 9 May 2018 14:42:52 -0500 Subject: [PATCH] Step 3 --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index 05994c1..1b84590 100644 --- a/main.go +++ b/main.go @@ -8,9 +8,14 @@ import ( func main() { http.HandleFunc("/hello", HelloHTTP) + http.HandleFunc("/", NotFound) log.Fatal(http.ListenAndServe(":8080", nil)) } func HelloHTTP(w http.ResponseWriter, req *http.Request) { fmt.Fprint(w, "Hello HTTP") } + +func NotFound(w http.ResponseWriter, req *http.Request) { + http.NotFound(w, req) +}