20 lines
209 B
Go
20 lines
209 B
Go
|
package assets
|
||
|
|
||
|
import (
|
||
|
"embed"
|
||
|
"fmt"
|
||
|
"io/fs"
|
||
|
)
|
||
|
|
||
|
//go:embed build/*
|
||
|
var ui embed.FS
|
||
|
|
||
|
func GetUI() fs.FS {
|
||
|
dir, err := fs.Sub(ui, "build")
|
||
|
if err != nil {
|
||
|
fmt.Println(err)
|
||
|
panic(err)
|
||
|
}
|
||
|
return dir
|
||
|
}
|