web

package
v0.2.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package web embeds the SvelteKit static build and serves it as a SPA.

The build/ directory is produced by `pnpm --dir web build`. Only a `.gitkeep` sentinel is tracked in git so `go build` always works; if no real build is present the handler serves a friendly placeholder page.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler() http.Handler

Handler serves the embedded SvelteKit build, falling back to index.html for unknown paths so client-side routing works. When no real build is embedded, every request gets a placeholder page.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL