@@ -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
}
The note is not visible to the blocked user.