Documentation
¶
Overview ¶
Package web is pogi's console: server-rendered HTML with htmx, mounted at /_pogi/.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Favicon = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "image/svg+xml") w.Header().Set("Cache-Control", "max-age=86400") io.WriteString(w, `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" rx="8" fill="#ff8cc6"/><text x="16" y="23" font-size="20" text-anchor="middle" fill="#3d0a26" font-family="sans-serif" font-weight="700">p</text></svg>`) })
Favicon answers browsers' automatic /favicon.ico so it never reaches S3.
Functions ¶
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.