main: fix indenting
crispy-caesus crispy@crispy-caesus.eu
Fri, 20 Mar 2026 02:14:27 +0100
1 files changed,
6 insertions(+),
6 deletions(-)
jump to
M
cmd/server/main.go
→
cmd/server/main.go
@@ -7,12 +7,12 @@ "net/http"
) func handler(w http.ResponseWriter, r *http.Request) { - title := r.URL.Path[len("/"):] - if title == "" { - title = "index" - } - log.Print(title) - http.ServeFile(w, r, "templates/" + title + ".html") + title := r.URL.Path[len("/"):] + if title == "" { + title = "index" + } + log.Print(title) + http.ServeFile(w, r, "html/"+title+".html") }