From b3dbd23a8ea3efb12356cafea95f46d548ab6cb7 Mon Sep 17 00:00:00 2001 From: Lucas Schumacher Date: Wed, 31 Jul 2024 21:18:51 -0400 Subject: [PATCH] Use template for faq page --- main.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/main.go b/main.go index 557c67e..7779175 100644 --- a/main.go +++ b/main.go @@ -34,15 +34,8 @@ func contactHandler(w http.ResponseWriter, r *http.Request) { executeTemplate(w, path) } func faqHandler(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Content-Type", "text/html; charset=utf8") - fmt.Fprint(w, ` -

FAQ

-
-

Is this a real website?

-

No.

-

I Can Has Cheezburger?

-

No.

- `) + path := "templates/faq.gohtml" + executeTemplate(w, path) } func notFoundHandler(w http.ResponseWriter, r *http.Request) {