mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 23:49:23 +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")
|
||
|
}
|