feat: dashboard

This commit is contained in:
tao.chen
2026-09-01 10:13:33 +08:00
parent 208eb7f242
commit dfe7f85977
7 changed files with 988 additions and 6 deletions
+15
View File
@@ -0,0 +1,15 @@
package main
import (
"embed"
"io/fs"
)
//go:embed static
var staticFS embed.FS
// staticSubFS 返回 static 子目录的 fs.FS,便于 StaticFS 挂载
func staticSubFS() fs.FS {
sub, _ := fs.Sub(staticFS, "static")
return sub
}