initial commit

This commit is contained in:
Bartal Læarsson
2026-06-18 21:41:47 +01:00
commit 8e60f0472b
29 changed files with 2872 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package main
import (
"net/http"
"time"
)
type aboutView struct {
Version string
ResetIntervalMinutes int
}
func (s *Server) handleAbout(w http.ResponseWriter, r *http.Request) {
s.render(w, "about_page", aboutView{
Version: Version,
ResetIntervalMinutes: int(resetInterval / time.Minute),
})
}