Go's embed excludes files/directories starting with '_' by default. SvelteKit outputs JS bundles under _app/, which would be silently excluded by the dist/* pattern. Use all:dist to ensure all SPA assets are embedded in the binary. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8 lines
144 B
Go
8 lines
144 B
Go
// Package web embeds the built Svelte SPA for serving from the Go binary.
|
|
package web
|
|
|
|
import "embed"
|
|
|
|
//go:embed all:dist
|
|
var DistFS embed.FS
|