diff --git a/main.go b/main.go index 3833cc4..c895d4a 100644 --- a/main.go +++ b/main.go @@ -13,6 +13,17 @@ func contactHandler(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf8") fmt.Fprint(w, "
To get in touch, email me at example@example.com
") } +func faqHandler(w http.ResponseWriter, r *http.Request) { + w.Header().Set("Content-Type", "text/html; charset=utf8") + fmt.Fprint(w, ` +No.
+No.
+ `) +} type Router struct{} @@ -22,6 +33,8 @@ func (router Router) ServeHTTP(w http.ResponseWriter, r *http.Request) { homeHandler(w, r) case "/contact": contactHandler(w, r) + case "/faq": + faqHandler(w, r) default: w.Header().Set("Content-Type", "text/html; charset=utf8") w.WriteHeader(http.StatusNotFound)