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 ¶
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.
Click to show internal directories.
Click to hide internal directories.