From 0d8e354d64e8a4ea4ba4044ca7a6fb3100b5ee69 Mon Sep 17 00:00:00 2001 From: dez Date: Thu, 28 Mar 2024 08:19:29 +0100 Subject: [PATCH] gave it some style --- main.go | 2 +- static/search.html | 61 ++++++++++++++++++++++++-- templates/results.html | 97 +++++++++++++++++++++++++++++++++++++++++- 3 files changed, 155 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index f7053c8..16c5a77 100644 --- a/main.go +++ b/main.go @@ -28,7 +28,7 @@ var templates = template.Must(template.New("").Funcs(funcs).ParseFiles("template func main() { http.HandleFunc("/", handleSearch) http.HandleFunc("/search", handleSearch) - fmt.Println("Server is listening on port 5000...") + fmt.Println("Server is listening on http://localhost:5000") log.Fatal(http.ListenAndServe(":5000", nil)) } diff --git a/static/search.html b/static/search.html index 235ce31..7fc519f 100644 --- a/static/search.html +++ b/static/search.html @@ -5,15 +5,70 @@ - TailsX + TailsGo +

TailsGo

-
@@ -21,4 +76,4 @@ - \ No newline at end of file + diff --git a/templates/results.html b/templates/results.html index dfcbc68..66afe71 100644 --- a/templates/results.html +++ b/templates/results.html @@ -7,13 +7,108 @@ {{ .Title }} +

TailsGo

-