go-paste/assets/assets.go

20 lines
209 B
Go
Raw Permalink Normal View History

2023-10-19 17:05:41 -06:00
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
}