From 11cc78b6bea5df8a3ba214c04f96e35fd777b963 Mon Sep 17 00:00:00 2001 From: nate smith Date: Tue, 13 Feb 2024 21:41:05 -0800 Subject: [PATCH] unused --- main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.go b/main.go index 70bd0dd..8833418 100644 --- a/main.go +++ b/main.go @@ -45,11 +45,9 @@ func main() { r.SetFuncMap(template.FuncMap{ "upper": strings.ToUpper, }) - r.LoadHTMLFiles("templates/index.tmpl", "templates/phrase.tmpl") + r.LoadHTMLFiles("templates/index.tmpl") r.StaticFile("/favicon.ico", "./assets/favicon.ico") r.StaticFile("/main.js", "./assets/main.js") - r.StaticFile("/htmx.js", "./assets/htmx@1.9.10.min.js") - r.StaticFile("/hyperscript.js", "./assets/hyperscript.org@0.9.12") randMax := big.NewInt(maxID) @@ -97,7 +95,6 @@ func main() { } p.Source = s p.ID = id.Int64() - //c.HTML(http.StatusOK, "phrase.tmpl", p) c.JSON(http.StatusOK, p) })