web

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PublicFS = findPublicFS()

PublicFS serves frontend assets in development and tests when the binary was not built with -tags embed. It prefers generated files on disk and falls back to a tiny placeholder SPA so ordinary `go test`/`go build` do not require Node, Dagger, or committed generated assets.

Functions

func NewSPAHandler

func NewSPAHandler() (http.Handler, error)

NewSPAHandler returns a handler that serves the frontend assets with SPA fallback to index.html for unknown paths. Production builds set PublicFS from embedded assets generated by `go generate ./pkg/web`; development/test builds use a disk or in-memory fallback from embed_none.go.

Types

This section is empty.

Jump to

Keyboard shortcuts

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