Files
2026-09-01 10:13:33 +08:00

16 lines
237 B
Go

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
}