初始化仓库

This commit is contained in:
2026-06-02 23:14:41 +08:00
commit 0bc3f02670
520 changed files with 191097 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
package core
import "io/fs"
var webAssetsFS fs.FS
// RegisterWebAssets registers the embedded web frontend assets.
// Called from web/embed.go's init() function.
func RegisterWebAssets(fsys fs.FS) {
webAssetsFS = fsys
}
// GetWebAssets returns the registered web assets filesystem, or nil.
func GetWebAssets() fs.FS {
return webAssetsFS
}
// WebAssetsAvailable reports whether web frontend assets are embedded.
func WebAssetsAvailable() bool {
return webAssetsFS != nil
}