1
0
Fork 1
mirror of https://github.com/0x2E/fusion.git synced 2025-06-08 05:27:15 +09:00
fusion/frontend/embed.go
2024-03-06 23:09:24 +08:00

22 lines
298 B
Go

package frontend
import (
"embed"
"io/fs"
)
// This embed only used in production. Only APIs are used in development,
// so no error
//go:embed all:build
var build embed.FS
var Content fs.FS
func init() {
sub, err := fs.Sub(build, "build")
if err != nil {
panic(err)
}
Content = sub
}