forked from rosa/hakurei
It existed in mae's #33, but ozy seems to have lost it during her changes pre-merge, so just add it back again.
22 lines
301 B
Go
22 lines
301 B
Go
//go:build frontend
|
|
|
|
package ui
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
)
|
|
|
|
//go:generate tsc
|
|
//go:generate cp index.html style.css favicon.ico static
|
|
//go:embed static
|
|
var _static embed.FS
|
|
|
|
var static = func() fs.FS {
|
|
if f, err := fs.Sub(_static, "static"); err != nil {
|
|
panic(err)
|
|
} else {
|
|
return f
|
|
}
|
|
}()
|