Documentation
¶
Overview ¶
Package webassets embeds the built SvelteKit static SPA so the single Go binary serves both the API and the UI. The real build artifacts under dist/ are generated by `make web-embed` (which syncs web/build/ into dist/) and are gitignored; only a placeholder dist/index.html is committed so `go build` and the test suite always compile even without a fresh SPA build.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FS ¶
FS returns the embedded SPA rooted at dist/ (so "index.html" and "_app/..." resolve directly). It never returns nil on success — an empty tree still yields a usable fs.FS.
func IsPlaceholder ¶
IsPlaceholder reports whether the embedded SPA is only the committed placeholder (i.e. `make web-embed` was never run). Callers can warn on boot so a placeholder UI is never mistaken for a real one.
Types ¶
This section is empty.