Documentation
¶
Overview ¶
Package web holds the embedded static assets (CSS, JS, images) served by the web UI binary. The embed.FS is populated at compile time, so the production binary is fully self-contained with no external file system dependencies at runtime.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StaticFS, _ = fs.Sub(staticFiles, "static") //nolint:errcheck // fs.Sub on a known valid path never errors
StaticFS is the sub-filesystem rooted at the "static" directory. Mount it at /static/ in the HTTP mux:
mux.Handle("GET /static/", http.StripPrefix("/static/", http.FileServerFS(web.StaticFS)))
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.