22 lines
277 B
Go
22 lines
277 B
Go
//go:build prod
|
|
|
|
package fs
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
)
|
|
|
|
//go:embed dist
|
|
var embedUI embed.FS
|
|
|
|
// / GetUIFS returns an embed FS for the UI components in the dist dir.
|
|
func getUIAssets() fs.FS {
|
|
f, err := fs.Sub(embedUI, "dist")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
return f
|
|
}
|