mirror of
https://github.com/0x2E/fusion.git
synced 2025-06-08 05:27:15 +09:00
22 lines
298 B
Go
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
|
|
}
|