mirror of
https://github.com/xxnuo/MTranServer.git
synced 2026-09-03 06:35:20 +08:00
15 lines
200 B
Go
15 lines
200 B
Go
package ui
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
)
|
|
|
|
//go:embed all:dist
|
|
var distFS embed.FS
|
|
|
|
// GetDistFS returns the embedded dist filesystem
|
|
func GetDistFS() (fs.FS, error) {
|
|
return fs.Sub(distFS, "dist")
|
|
}
|