mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-24 08:46:54 +08:00
15 lines
215 B
Go
15 lines
215 B
Go
|
|
package admin
|
||
|
|
|
||
|
|
import (
|
||
|
|
"embed"
|
||
|
|
"io/fs"
|
||
|
|
)
|
||
|
|
|
||
|
|
//go:embed static/*
|
||
|
|
var StaticFS embed.FS
|
||
|
|
|
||
|
|
// GetStaticFS returns the embedded static filesystem
|
||
|
|
func GetStaticFS() (fs.FS, error) {
|
||
|
|
return fs.Sub(StaticFS, "static")
|
||
|
|
}
|