Many changes

This commit is contained in:
2026-05-31 20:17:49 -05:00
parent 9e398957a9
commit 99d46ecd2a
28 changed files with 3729 additions and 594 deletions
+21
View File
@@ -0,0 +1,21 @@
package webassets
import (
"embed"
"io/fs"
)
//go:embed static
var embeddedFiles embed.FS
func StaticFS() fs.FS {
return mustSub("static")
}
func mustSub(dir string) fs.FS {
sub, err := fs.Sub(embeddedFiles, dir)
if err != nil {
panic(err)
}
return sub
}