ui

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dist

func Dist() (fs.FS, error)

func SPAHandler

func SPAHandler() (http.Handler, error)

SPAHandler serves files from the embedded dist directory, falling back to index.html for any path that does not match a real asset. This lets the client-side router own arbitrary paths without the server 404-ing.

In --dev mode the caller should skip mounting this handler and let the browser hit the Vite dev server on a separate port.

Types

This section is empty.

Jump to

Keyboard shortcuts

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