Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
19 lines
258 B
Go
19 lines
258 B
Go
// Package web embeds the built frontend (web/dist, produced by `make web`).
|
|
package web
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
)
|
|
|
|
//go:embed all:dist
|
|
var dist embed.FS
|
|
|
|
func FS() fs.FS {
|
|
sub, err := fs.Sub(dist, "dist")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return sub
|
|
}
|