// Package web serves the server-rendered Bootstrap 5 admin UI: Go // templates plus vanilla JS/CSS, all embedded into the binary. No // frontend framework is used. package web import ( "embed" "io/fs" ) //go:embed all:templates var templatesFS embed.FS //go:embed all:static var staticFSRaw embed.FS // StaticFS returns the embedded static assets rooted at "static/..." so // they can be served at /static/. func StaticFS() fs.FS { sub, err := fs.Sub(staticFSRaw, "static") if err != nil { panic(err) } return sub }