Spaces:
Runtime error
Runtime error
File size: 432 Bytes
857a91b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | // Package web embeds the Matrix Cloud enterprise console static assets so the
// runtime can serve the UI from the same binary (no external CDN at runtime).
package web
import (
"embed"
"io/fs"
)
//go:embed static
var staticFS embed.FS
// Static returns the console's static asset filesystem rooted at the asset dir.
func Static() fs.FS {
sub, err := fs.Sub(staticFS, "static")
if err != nil {
panic(err)
}
return sub
}
|