go-paste/assets/assets.go
xuu b82a1e954e
All checks were successful
Deploy / deploy (push) Successful in 1m21s
feat: create v2 for module support
2023-10-19 17:07:37 -06:00

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
}