frontend

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package frontend serves embedded assets with a conservative SPA fallback.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(files fs.FS) (http.Handler, error)

New accepts a filesystem rooted at compiled frontend output (normally fs.Sub of an embed.FS). Backend routes must be registered on the application's router. Paths with an extension, /assets, and reserved backend namespaces never fall back. Files are read per request, so os.DirFS serves edits immediately in development.

Types

This section is empty.

Jump to

Keyboard shortcuts

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